]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
AsyncConnection: Avoid lockdep check assert failure
authorHaomai Wang <haomaiwang@gmail.com>
Mon, 20 Apr 2015 03:38:16 +0000 (11:38 +0800)
committerHaomai Wang <haomaiwang@gmail.com>
Mon, 20 Apr 2015 03:38:16 +0000 (11:38 +0800)
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
src/msg/async/AsyncConnection.cc

index 06a2d9a03bba7a7883ca8ded8f7549d2bd25288d..defbd67aa78f840ab62f2627efd3780842a6fedb 100644 (file)
@@ -1590,7 +1590,7 @@ int AsyncConnection::handle_connect_msg(ceph_msg_connect &connect, bufferlist &a
   if (existing) {
     // There is no possible that existing connection will acquire this
     // connection's lock
-    existing->lock.Lock();
+    existing->lock.Lock(true);  // skip lockdep check (we are locking a second AsyncConnection here)
 
     if (existing->replacing || existing->state == STATE_CLOSED) {
       ldout(async_msgr->cct, 1) << __func__ << " existing racing replace or mark_down happened while replacing."