summaryrefslogtreecommitdiff
path: root/drivers/block/xsysace.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2014-08-16 16:02:24 +0400
committerJens Axboe <axboe@fb.com>2014-08-22 05:37:51 +0400
commitcddd5d17642cc6881352732693c2ae6930e9ce65 (patch)
tree5fad9444dbe5b3d2347d43c2bfe77383573b9031 /drivers/block/xsysace.c
parenta68aafa5b297d99c2d0c38689089a752126e9e79 (diff)
downloadlinux-cddd5d17642cc6881352732693c2ae6930e9ce65.tar.xz
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/xsysace.c')
0 files changed, 0 insertions, 0 deletions