diff options
author | Ming Lei <ming.lei@redhat.com> | 2017-11-16 01:08:44 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-11-16 05:51:03 +0100 |
commit | 34d9715ac1edd50285168dd8d80c972739a4f6a4 (patch) | |
tree | 519bf83ce493bdb2557137b05b770e921827b3cd /block/bio.c | |
parent | Merge branch 'for-4.15/timer' into for-linus (diff) | |
download | linux-34d9715ac1edd50285168dd8d80c972739a4f6a4.tar.xz linux-34d9715ac1edd50285168dd8d80c972739a4f6a4.zip |
block: wake up all tasks blocked in get_request()
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>
Diffstat (limited to 'block/bio.c')
0 files changed, 0 insertions, 0 deletions