From bb2a97000be836488c1aae97cd3283b46c9545e6 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 21 Jul 2019 00:41:18 +0800 Subject: [PATCH] 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 --- src/common/mutex_debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/mutex_debug.h b/src/common/mutex_debug.h index 57e1a69bd2036..c68be94a857f0 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(); -- 2.39.5