From: Haomai Wang Date: Thu, 18 Sep 2014 03:17:08 +0000 (+0800) Subject: AsyncConnection: Rescheduler avoid dead lock X-Git-Tag: v0.88~37^2~4^2~24 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=42d1368c78d9b2883dab5ade2a855cb6174a41aa;p=ceph.git AsyncConnection: Rescheduler avoid dead lock Signed-off-by: Haomai Wang --- diff --git a/src/msg/AsyncConnection.cc b/src/msg/AsyncConnection.cc index c205da01f295..a7a846247309 100644 --- a/src/msg/AsyncConnection.cc +++ b/src/msg/AsyncConnection.cc @@ -1606,7 +1606,8 @@ void AsyncConnection::accept(int incoming) sd = incoming; state = STATE_ACCEPTING; center->create_file_event(sd, EVENT_READABLE, read_handler); - process(); + // rescheduler connection in order to avoid lock dep + center->create_time_event(0, read_handler); } int AsyncConnection::send_message(Message *m)