Re: [PATCH v9] block: cancel all throttled bios in del_gendisk()
From: Jens Axboe
Date: Fri Feb 25 2022 - 09:27:21 EST
On 2/10/22 4:56 AM, Yu Kuai wrote:
> 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.
I hand applied this for 5.18 as it's conflicting with other
changes. Please double check the end result.
--
Jens Axboe