]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/finisher: use distinct lock names
authorJohn Spray <john.spray@redhat.com>
Sun, 5 Mar 2017 15:27:46 +0000 (10:27 -0500)
committerKefu Chai <kchai@redhat.com>
Sun, 30 Apr 2017 02:21:29 +0000 (10:21 +0800)
Two Finishers should not be considered equivalent
for lockdep purposes: for example in mgr we have
our in-mgr Finisher, and then any finishers that
might be in libraries called by modules.

Signed-off-by: John Spray <john.spray@redhat.com>
src/common/Finisher.h

index 5947fa77df149f0700a10b0d5884c8a6050ad2aa..045b8e47a5a5c4e103304a783d1b9a98fd27c550 100644 (file)
@@ -142,7 +142,7 @@ class Finisher {
 
   /// Construct a named Finisher that logs its queue length.
   Finisher(CephContext *cct_, string name, string tn) :
-    cct(cct_), finisher_lock("Finisher::finisher_lock"),
+    cct(cct_), finisher_lock("Finisher::" + name),
     finisher_stop(false), finisher_running(false),
     thread_name(tn), logger(0),
     finisher_thread(this) {