]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
WorkQueue: PointerWQ drain no longer waits for other queues
authorJason Dillaman <dillaman@redhat.com>
Fri, 14 Aug 2015 17:28:13 +0000 (13:28 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 11 Feb 2016 15:02:55 +0000 (10:02 -0500)
commitda772fa88db47703d491ebaa9bd709e62858b3b0
tree66c9f62462138fb08b7680baa855e7c2e13a820f
parent5593e57c1b1c198e95a636ffdda4922259582a5f
WorkQueue: PointerWQ drain no longer waits for other queues

If another (independent) queue was processing, drain could
block waiting.  Instead, allow drain to exit quickly if
no items are being processed and the queue is empty for
the current WQ.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit b118d7df1e34387b6e5649a5b205cf061598d0d4)
src/common/WorkQueue.h