From: Kefu Chai Date: Sat, 20 Jul 2019 16:41:18 +0000 (+0800) Subject: common/mutex_debug.h: pass "no_lockdep" to try_lock() X-Git-Tag: v15.1.0~1971^2~41 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bb2a97000be836488c1aae97cd3283b46c9545e6;p=ceph.git common/mutex_debug.h: pass "no_lockdep" to try_lock() there is chance that we want to disable lockdep, so we shold pass `no_lockdep` down to `try_lock()` in `lock()`. Signed-off-by: Kefu Chai --- diff --git a/src/common/mutex_debug.h b/src/common/mutex_debug.h index 57e1a69bd203..c68be94a857f 100644 --- a/src/common/mutex_debug.h +++ b/src/common/mutex_debug.h @@ -178,7 +178,7 @@ public: if (enable_lockdep(no_lockdep)) _will_lock(recursive); - if (try_lock()) + if (try_lock(no_lockdep)) return; lock_impl();