]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
AsyncConnection: Rescheduler avoid dead lock
authorHaomai Wang <haomaiwang@gmail.com>
Thu, 18 Sep 2014 03:17:08 +0000 (11:17 +0800)
committerHaomai Wang <haomaiwang@gmail.com>
Wed, 8 Oct 2014 06:04:58 +0000 (14:04 +0800)
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
src/msg/AsyncConnection.cc

index c205da01f2957fc8ffc3fe65919cee35e808603c..a7a846247309dedd1f178d87f434e596c5c8c036 100644 (file)
@@ -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)