]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common: possible lockdep false alarm for ThreadPool lock 13487/head
authorMykola Golub <mgolub@mirantis.com>
Sat, 4 Feb 2017 14:27:11 +0000 (15:27 +0100)
committerShinobu Kinjo <shinobu@redhat.com>
Fri, 17 Feb 2017 17:02:01 +0000 (02:02 +0900)
Fixes: http://tracker.ceph.com/issues/18819
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
(cherry picked from commit 8677dea4cd462d2141da28623a82b208cbc926f6)

src/common/WorkQueue.cc

index f37d125b5d720c3a54493eda6a2bb9fe90f0917d..8feb8ae7c40a0c99e32b5bf293061c742f566183 100644 (file)
@@ -31,7 +31,7 @@
 
 ThreadPool::ThreadPool(CephContext *cct_, string nm, string tn, int n, const char *option)
   : cct(cct_), name(std::move(nm)), thread_name(std::move(tn)),
-    lockname(nm + "::lock"),
+    lockname(name + "::lock"),
     _lock(lockname.c_str()),  // this should be safe due to declaration order
     _stop(false),
     _pause(0),