2022-12-05 04:34:58

by Kemeng Shi

[permalink] [raw]
Subject: [PATCH v3 1/9] blk-throttle: correct stale comment in throtl_pd_init

From: Kemeng Shi <[email protected]>

On the default hierarchy (cgroup2), the throttle interface files don't
exist in the root cgroup, so the ablity to limit the whole system
by configuring root group is not existing anymore. In general, cgroup
doesn't wanna be in the business of restricting resources at the
system level, so correct the stale comment that we can limit whole
system to we can only limit subtree.

Signed-off-by: Kemeng Shi <[email protected]>
Acked-by: Tejun Heo <[email protected]>
Signed-off-by: Kemeng Shi <[email protected]>
---
block/blk-throttle.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/block/blk-throttle.c b/block/blk-throttle.c
index 847721dc2b2b..8e2349b17936 100644
--- a/block/blk-throttle.c
+++ b/block/blk-throttle.c
@@ -395,8 +395,9 @@ static void throtl_pd_init(struct blkg_policy_data *pd)
* If on the default hierarchy, we switch to properly hierarchical
* behavior where limits on a given throtl_grp are applied to the
* whole subtree rather than just the group itself. e.g. If 16M
- * read_bps limit is set on the root group, the whole system can't
- * exceed 16M for the device.
+ * read_bps limit is set on a parent group, summary bps of
+ * parent group and its subtree groups can't exceed 16M for the
+ * device.
*
* If not on the default hierarchy, the broken flat hierarchy
* behavior is retained where all throtl_grps are treated as if
--
2.30.0


2022-12-05 21:07:21

by Jens Axboe

[permalink] [raw]
Subject: Re: [PATCH v3 1/9] blk-throttle: correct stale comment in throtl_pd_init

On 12/5/22 4:57?AM, Kemeng Shi wrote:
> From: Kemeng Shi <[email protected]>
>
> On the default hierarchy (cgroup2), the throttle interface files don't
> exist in the root cgroup, so the ablity to limit the whole system
> by configuring root group is not existing anymore. In general, cgroup
> doesn't wanna be in the business of restricting resources at the
> system level, so correct the stale comment that we can limit whole
> system to we can only limit subtree.
>
> Signed-off-by: Kemeng Shi <[email protected]>
> Acked-by: Tejun Heo <[email protected]>
> Signed-off-by: Kemeng Shi <[email protected]>

Which one should be used? You have duplicate SOBs in each of the
commits. It's marked as being from Kemeng Shi <[email protected]> so
that is what I'll use.

--
Jens Axboe

2022-12-06 01:29:49

by Kemeng Shi

[permalink] [raw]
Subject: Re: [PATCH v3 1/9] blk-throttle: correct stale comment in throtl_pd_init



on 12/6/2022 4:43 AM, Jens Axboe wrote:
> On 12/5/22 4:57?AM, Kemeng Shi wrote:
>> From: Kemeng Shi <[email protected]>
>>
>> On the default hierarchy (cgroup2), the throttle interface files don't
>> exist in the root cgroup, so the ablity to limit the whole system
>> by configuring root group is not existing anymore. In general, cgroup
>> doesn't wanna be in the business of restricting resources at the
>> system level, so correct the stale comment that we can limit whole
>> system to we can only limit subtree.
>>
>> Signed-off-by: Kemeng Shi <[email protected]>
>> Acked-by: Tejun Heo <[email protected]>
>> Signed-off-by: Kemeng Shi <[email protected]>
>
> Which one should be used? You have duplicate SOBs in each of the
> commits. It's marked as being from Kemeng Shi <[email protected]> so
> that is what I'll use.

Either one is great, thanks.

--
Best wishes
Kemeng Shi