From 6d9526de934e5813f15b13842fa9c58589470165 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 15 Oct 2018 08:56:17 -0500 Subject: [PATCH] common/mutex_debug: remove no-op before/after hooks These used to be for the timing instrumentation. Signed-off-by: Sage Weil --- src/common/mutex_debug.cc | 7 ------- src/common/mutex_debug.h | 6 ------ 2 files changed, 13 deletions(-) diff --git a/src/common/mutex_debug.cc b/src/common/mutex_debug.cc index c6b93527199..5660826ef2c 100644 --- a/src/common/mutex_debug.cc +++ b/src/common/mutex_debug.cc @@ -58,12 +58,5 @@ void mutex_debugging_base::_will_unlock() { // about to unlock id = lockdep_will_unlock(name.c_str(), id); } -ceph::mono_time mutex_debugging_base::before_lock_blocks() { - return ceph::mono_time::min(); -} - -void mutex_debugging_base::after_lock_blocks(ceph::mono_time start, - bool no_lockdep) { -} } // namespace mutex_debug_detail } // namespace ceph diff --git a/src/common/mutex_debug.h b/src/common/mutex_debug.h index accffde7816..43b52eb738f 100644 --- a/src/common/mutex_debug.h +++ b/src/common/mutex_debug.h @@ -52,10 +52,6 @@ protected: mutex_debugging_base(const char *n, bool bt = false); ~mutex_debugging_base(); - ceph::mono_time before_lock_blocks(); - void after_lock_blocks(ceph::mono_time start, - bool no_lockdep); - public: bool is_locked() const { return (nlock > 0); @@ -181,11 +177,9 @@ public: if (try_lock()) return; - auto t = before_lock_blocks(); lock_impl(); if (!no_lockdep && g_lockdep) _locked(); - after_lock_blocks(t, no_lockdep); _post_lock(); } -- 2.39.5