From 0c75b8804ae5cd4343987955a7c0401807a1c10f Mon Sep 17 00:00:00 2001 From: Haomai Wang Date: Mon, 20 Apr 2015 11:38:16 +0800 Subject: [PATCH] AsyncConnection: Avoid lockdep check assert failure Signed-off-by: Haomai Wang --- src/msg/async/AsyncConnection.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msg/async/AsyncConnection.cc b/src/msg/async/AsyncConnection.cc index 06a2d9a03bba7..defbd67aa78f8 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." -- 2.39.5