]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/mutex_debug.h: pass "no_lockdep" to try_lock()
authorKefu Chai <kchai@redhat.com>
Sat, 20 Jul 2019 16:41:18 +0000 (00:41 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 3 Aug 2019 03:27:19 +0000 (11:27 +0800)
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 <kchai@redhat.com>
src/common/mutex_debug.h

index 57e1a69bd2036556c18c2930aff2cd8daeffd085..c68be94a857f0f5baa0c4d598de5f82664c2479d 100644 (file)
@@ -178,7 +178,7 @@ public:
     if (enable_lockdep(no_lockdep))
       _will_lock(recursive);
 
-    if (try_lock())
+    if (try_lock(no_lockdep))
       return;
 
     lock_impl();