]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
WorkQueue: add/remove_work_queue methods now thread safe 5889/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 10 Aug 2015 23:10:19 +0000 (19:10 -0400)
committerAbhishek Varshney <abhishek.varshney@flipkart.com>
Fri, 11 Sep 2015 11:51:25 +0000 (17:21 +0530)
commitd8ac5103e433f6649e28392b365d2e02b4ba1ffe
tree12f7151df7aaddedb77cea15798265ef7363f452
parent6e22620165872a88ab4b75ed2fb93f61beb65d12
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>
(cherry picked from commit 3e18449b01c1ab78d1bbfc1cf111aa9bdbef7b1f)
src/common/WorkQueue.h