]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/mutex_debug: remove no-op before/after hooks
authorSage Weil <sage@redhat.com>
Mon, 15 Oct 2018 13:56:17 +0000 (08:56 -0500)
committerSage Weil <sage@redhat.com>
Mon, 15 Oct 2018 13:56:17 +0000 (08:56 -0500)
These used to be for the timing instrumentation.

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/mutex_debug.cc
src/common/mutex_debug.h

index c6b93527199e92f01e15cb553a6ce7d4552e372a..5660826ef2cf6d99bfc8cc19a29fae98c2d98f4e 100644 (file)
@@ -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
index accffde7816ab4f52e778631874840536bd4ba27..43b52eb738fa59f4b43927610ca83437fcee5424 100644 (file)
@@ -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();
   }