mbox series

[0/4] cancel all throttled bios in blk_cleanup_queue()

Message ID 20210922125115.381752-1-yukuai3@huawei.com (mailing list archive)
Headers show
Series cancel all throttled bios in blk_cleanup_queue() | expand

Message

Yu Kuai Sept. 22, 2021, 12:51 p.m. UTC
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(-)