diff options
author | Yu Kuai <yukuai3@huawei.com> | 2022-03-18 14:01:44 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-03-18 16:57:56 +0100 |
commit | 8f9e7b65f833cb9a4b2e2f54a049d74df394d906 (patch) | |
tree | 53ea2561819061d557497972434541c212a7c2a2 /drivers/block/virtio_blk.c | |
parent | block: let blkcg_gq grab request queue's refcnt (diff) | |
download | linux-8f9e7b65f833cb9a4b2e2f54a049d74df394d906.tar.xz linux-8f9e7b65f833cb9a4b2e2f54a049d74df394d906.zip |
block: cancel all throttled bios in del_gendisk()
Throttled bios can't be issued after del_gendisk() is done, thus
it's better to cancel them immediately rather than waiting for
throttle is done.
For example, if user thread is throttled with low bps while it's
issuing large io, and the device is deleted. The user thread will
wait for a long time for io to return.
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20220318130144.1066064-4-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/virtio_blk.c')
0 files changed, 0 insertions, 0 deletions