If blk_cleanup_queue() is called when some io are still throttled, such io will not be handled until the throttle is done, which is not necessary because the queue is already dying. This patch series handle such in blk_cleanup_queue(). Yu Kuai (4): Revert "blk-throttle: remove tg_drain_bios" blk-throtl: don't warn in tg_drain_bios() blk-throtl: introduce blk_throtl_cancel_bios() block: cancel all throttled bios in blk_cleanup_queue() block/blk-core.c | 3 ++ block/blk-throttle.c | 70 +++++++++++++++++++++++++++++++++++++++++--- block/blk.h | 2 ++ 3 files changed, 71 insertions(+), 4 deletions(-) -- 2.31.1