]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
WorkQueue: add/remove_work_queue methods now thread safe 5536/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 10 Aug 2015 23:10:19 +0000 (19:10 -0400)
committerJason Dillaman <dillaman@redhat.com>
Mon, 10 Aug 2015 23:10:19 +0000 (19:10 -0400)
commit3e18449b01c1ab78d1bbfc1cf111aa9bdbef7b1f
treee699d360f47b9dd8a0f2fe1984cbeec1b0b260b3
parente35d27fc69d1b7a3be7a61237ebf1e6bdd9070dd
WorkQueue: add/remove_work_queue methods now thread safe

These methods were not acquiring the ThreadPool lock when
manipulating the work_queue collection.  This was causing
occasional crashes within librbd when opening and closing
images.

Fixes: #12662
Backport: hammer, firefly
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/common/WorkQueue.h