Re: [PATCH] sched_ext/scx_flatcg: expire cached hweights on weight changes

From: Tejun Heo

Date: Fri Aug 14 2026 - 16:56:24 EST


On Fri, Aug 14, 2026 at 10:41:16PM +0800, Tao Cui wrote:
> fcg_cgroup_set_weight() updates cgc->weight and the parent's
> child_weight_sum but doesn't bump hweight_gen, so the hweights cached by
> cgrp_refresh_hweight() stay stale until some task activation bumps the
> generation. For cgroups whose tasks never go through a 0->n runnable
> transition (e.g. persistently busy ones), a cpu.weight change never
> propagates to scheduling at all.

Applied to sched_ext/for-7.3.

Thanks.

--
tejun