]> git-server-git.apps.pok.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>
Wed, 3 Feb 2016 03:00:46 +0000 (22:00 -0500)
commite5dfd3dd7a53bf79f1bfc17b8a4a720aba08d7c3
treeea95d09a49923a4be7b87b8be27ebd99aa22493a
parentedf60b452de3c6eb22c75be2547f51812e6eaf1e
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