diff options
author | Tejun Heo <tj@kernel.org> | 2014-08-16 08:02:24 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-08-21 20:37:51 -0500 |
commit | cddd5d17642cc6881352732693c2ae6930e9ce65 (patch) | |
tree | 5fad9444dbe5b3d2347d43c2bfe77383573b9031 /drivers/block/brd.c | |
parent | a68aafa5b297d99c2d0c38689089a752126e9e79 (diff) | |
download | linux-stable-cddd5d17642cc6881352732693c2ae6930e9ce65.tar.gz linux-stable-cddd5d17642cc6881352732693c2ae6930e9ce65.tar.bz2 linux-stable-cddd5d17642cc6881352732693c2ae6930e9ce65.zip |
blk-mq: blk_mq_freeze_queue() should allow nesting
While converting to percpu_ref for freezing, add703fda981 ("blk-mq:
use percpu_ref for mq usage count") incorrectly made
blk_mq_freeze_queue() misbehave when freezing is nested due to
percpu_ref_kill() being invoked on an already killed ref.
Fix it by making blk_mq_freeze_queue() kill and kick the queue only
for the outermost freeze attempt. All the nested ones can simply wait
for the ref to reach zero.
While at it, remove unnecessary @wake initialization from
blk_mq_unfreeze_queue().
Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block/brd.c')
0 files changed, 0 insertions, 0 deletions