[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220921095309.1481289-1-yukuai1@huaweicloud.com>
Date: Wed, 21 Sep 2022 17:53:07 +0800
From: Yu Kuai <yukuai1@...weicloud.com>
To: tj@...nel.org, axboe@...nel.dk
Cc: cgroups@...r.kernel.org, linux-block@...r.kernel.org,
linux-kernel@...r.kernel.org, yukuai3@...wei.com,
yukuai1@...weicloud.com, yi.zhang@...wei.com
Subject: [PATCH 0/2] blk-throttle: improve bypassing bios checkings
From: Yu Kuai <yukuai3@...wei.com>
Currently, "tg->has_rules" and "tg->flags & THROTL_TG_HAS_IOPS_LIMIT"
both try to bypass bios that don't need to be throttled, however, they are
a little redundant and both not perfect:
1) "tg->has_rules" only distinguish read and write, but not iops and bps
limit.
2) "tg->flags & THROTL_TG_HAS_IOPS_LIMIT" only check if iops limit
exist, read and write is not distinguished, and bps limit is not
checked.
With this patchset, biowon't be bypassedd if:
1) Bio is read/write, and corresponding read/write iops limit exist.
2) If corresponding iops limit doesn't exist, corresponding bps limit
exist and bio is not throttled before.
Yu Kuai (2):
blk-throttle: remove THROTL_TG_HAS_IOPS_LIMIT
blk-throttle: improve bypassing bios checkings
block/blk-throttle.c | 21 +++++++--------------
block/blk-throttle.h | 28 +++++++++++++++++++---------
2 files changed, 26 insertions(+), 23 deletions(-)
--
2.31.1
Powered by blists - more mailing lists