All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] cancel all throttled bios in blk_cleanup_queue()
@ 2021-09-22 12:51 ` Yu Kuai
  0 siblings, 0 replies; 19+ messages in thread
From: Yu Kuai @ 2021-09-22 12:51 UTC (permalink / raw)
  To: axboe, tj; +Cc: linux-block, linux-kernel, cgroups, yukuai3, yi.zhang

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


^ permalink raw reply	[flat|nested] 19+ messages in thread
* [PATCH 0/4] cancel all throttled bios in del_gendisk()
@ 2021-11-27 10:10 Yu Kuai
  2021-11-27 10:10   ` Yu Kuai
  0 siblings, 1 reply; 19+ messages in thread
From: Yu Kuai @ 2021-11-27 10:10 UTC (permalink / raw)
  To: hch, tj, axboe; +Cc: cgroups, linux-block, linux-kernel, yukuai3, yi.zhang

If del_gendisk() is done when some io are still throttled, such io
will not be handled until the throttle is done, which is not
necessary.

This patch series handle such io in del_gendisk().

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 del_gendisk()

 block/blk-throttle.c | 68 +++++++++++++++++++++++++++++++++++++++++---
 block/blk-throttle.h |  2 ++
 block/genhd.c        |  2 ++
 3 files changed, 68 insertions(+), 4 deletions(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2021-11-29 14:00 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-22 12:51 [PATCH 0/4] cancel all throttled bios in blk_cleanup_queue() Yu Kuai
2021-09-22 12:51 ` Yu Kuai
2021-09-22 12:51 ` [PATCH 1/4] Revert "blk-throttle: remove tg_drain_bios" Yu Kuai
2021-09-22 12:51   ` Yu Kuai
2021-09-22 12:51 ` [PATCH 2/4] blk-throtl: don't warn in tg_drain_bios() Yu Kuai
2021-09-22 12:51   ` Yu Kuai
2021-09-22 12:51 ` [PATCH 3/4] blk-throtl: introduce blk_throtl_cancel_bios() Yu Kuai
2021-09-22 12:51   ` Yu Kuai
2021-09-22 12:51 ` [PATCH 4/4] block: cancel all throttled bios in blk_cleanup_queue() Yu Kuai
2021-09-22 12:51   ` Yu Kuai
2021-09-22 14:34   ` Christoph Hellwig
2021-09-23 13:31     ` yukuai (C)
2021-09-23 13:31       ` yukuai (C)
2021-11-27 10:10 [PATCH 0/4] cancel all throttled bios in del_gendisk() Yu Kuai
2021-11-27 10:10 ` [PATCH 3/4] blk-throtl: introduce blk_throtl_cancel_bios() Yu Kuai
2021-11-27 10:10   ` Yu Kuai
2021-11-29 11:47   ` Christoph Hellwig
2021-11-29 11:47     ` Christoph Hellwig
2021-11-29 13:58     ` yukuai (C)
2021-11-29 13:58       ` yukuai (C)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.