diff options
author | Ming Lei <ming.lei@redhat.com> | 2017-11-16 08:08:44 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-14 09:28:23 +0100 |
commit | 1a5a4c6e868faf01cda18538ea72c6586dfee647 (patch) | |
tree | 86d9e62bafb0c2770b9329cd04cc39140fff34aa /block/blk-exec.c | |
parent | c31bfe7de24387dfc0b4c3c1a34f4f8d1554c907 (diff) |
block: wake up all tasks blocked in get_request()
[ Upstream commit 34d9715ac1edd50285168dd8d80c972739a4f6a4 ]
Once blk_set_queue_dying() is done in blk_cleanup_queue(), we call
blk_freeze_queue() and wait for q->q_usage_counter becoming zero. But
if there are tasks blocked in get_request(), q->q_usage_counter can
never become zero. So we have to wake up all these tasks in
blk_set_queue_dying() first.
Fixes: 3ef28e83ab157997 ("block: generic request_queue reference counting")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'block/blk-exec.c')
0 files changed, 0 insertions, 0 deletions