linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] cancel all throttled bios in del_gendisk()
@ 2021-11-30  1:17 Yu Kuai
  2021-11-30  1:17 ` [PATCH v2 1/2] blk-throtl: move WARN_ON_ONCE() from throtl_rb_first() to it's caller Yu Kuai
  2021-11-30  1:17 ` [PATCH v2 2/2] block: cancel all throttled bios in del_gendisk() Yu Kuai
  0 siblings, 2 replies; 7+ messages in thread
From: Yu Kuai @ 2021-11-30  1:17 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.

Changes in v2:
 - move WARN_ON_ONCE() from throtl_rb_first() to it's caller
 - merge some patches into one.

Yu Kuai (2):
  blk-throtl: move WARN_ON_ONCE() from throtl_rb_first() to it's caller
  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, 69 insertions(+), 3 deletions(-)

-- 
2.31.1


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

end of thread, other threads:[~2021-12-01  9:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-30  1:17 [PATCH v2 0/2] cancel all throttled bios in del_gendisk() Yu Kuai
2021-11-30  1:17 ` [PATCH v2 1/2] blk-throtl: move WARN_ON_ONCE() from throtl_rb_first() to it's caller Yu Kuai
2021-11-30  6:43   ` Christoph Hellwig
2021-11-30  1:17 ` [PATCH v2 2/2] block: cancel all throttled bios in del_gendisk() Yu Kuai
2021-11-30  6:43   ` Christoph Hellwig
2021-11-30 16:26   ` Tejun Heo
2021-12-01  9:26     ` yukuai (C)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).