cgroups.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v7 0/2] cancel all throttled bios in del_gendisk()
@ 2022-01-28  8:45 Yu Kuai
  2022-01-28  8:45 ` [PATCH v7 1/2] blk-throtl: introduce a new flag THROTL_TG_CANCELING Yu Kuai
       [not found] ` <20220128084522.3169961-1-yukuai3-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
  0 siblings, 2 replies; 5+ messages in thread
From: Yu Kuai @ 2022-01-28  8:45 UTC (permalink / raw)
  To: ming.lei, 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 v7:
 - use the new solution as suggested by Ming.

Yu Kuai (2):
  blk-throtl: introduce a new flag THROTL_TG_CANCELING
  block: cancel all throttled bios in del_gendisk()

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

-- 
2.31.1


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

end of thread, other threads:[~2022-02-08  3:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-28  8:45 [PATCH v7 0/2] cancel all throttled bios in del_gendisk() Yu Kuai
2022-01-28  8:45 ` [PATCH v7 1/2] blk-throtl: introduce a new flag THROTL_TG_CANCELING Yu Kuai
2022-02-07  8:15   ` Ming Lei
2022-02-08  3:54     ` yukuai (C)
     [not found] ` <20220128084522.3169961-1-yukuai3-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2022-01-28  8:45   ` [PATCH v7 2/2] block: cancel all throttled bios in del_gendisk() Yu Kuai

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).