[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220128084522.3169961-1-yukuai3@huawei.com>
Date: Fri, 28 Jan 2022 16:45:20 +0800
From: Yu Kuai <yukuai3@...wei.com>
To: <ming.lei@...hat.com>, <tj@...nel.org>, <axboe@...nel.dk>
CC: <cgroups@...r.kernel.org>, <linux-block@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <yukuai3@...wei.com>,
<yi.zhang@...wei.com>
Subject: [PATCH v7 0/2] cancel all throttled bios in del_gendisk()
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
Powered by blists - more mailing lists