From: Haomai Wang Date: Mon, 20 Apr 2015 03:38:16 +0000 (+0800) Subject: AsyncConnection: Avoid lockdep check assert failure X-Git-Tag: v9.0.1~74^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0c75b8804ae5cd4343987955a7c0401807a1c10f;p=ceph.git AsyncConnection: Avoid lockdep check assert failure Signed-off-by: Haomai Wang --- diff --git a/src/msg/async/AsyncConnection.cc b/src/msg/async/AsyncConnection.cc index 06a2d9a03bb..defbd67aa78 100644 --- a/src/msg/async/AsyncConnection.cc +++ b/src/msg/async/AsyncConnection.cc @@ -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."