]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
workqueue: make pause/unpause count
authorSage Weil <sage@newdream.net>
Wed, 15 Feb 2012 16:20:32 +0000 (08:20 -0800)
committerSage Weil <sage@newdream.net>
Wed, 15 Feb 2012 16:20:32 +0000 (08:20 -0800)
commite6ffe31bdf8dfa81fcc574b792aacc78be9890ca
treef05cdf6e4c3854dbee3e1930a28bc1a82d5ef51a
parent40802ae883a94d205a8716065b80ad5d7ff57d12
workqueue: make pause/unpause count

We can pause() multiple times, and we need as many unpause()s to actually
resume work.

This resolves problems where we have two actors interested in pausing a
queue, both want to stop work, and they aren't interacting/coordinating.

Signed-off-by: Sage Weil <sage@newdream.net>
src/common/WorkQueue.cc
src/common/WorkQueue.h