]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sched/fair: Propagate load for throttled cfs_rq
authorAaron Lu <ziqianlu@bytedance.com>
Wed, 10 Sep 2025 09:50:41 +0000 (17:50 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 15 Sep 2025 07:38:37 +0000 (09:38 +0200)
commitfe8d238e646e16cc431b7a5899f8dda690258ee9
tree8fe34a33c0f9e939ba5ec8f9107ae40576451798
parent5b726e9bf9544a349090879a513a5e00da486c14
sched/fair: Propagate load for throttled cfs_rq

Before task based throttle model, propagating load will stop at a
throttled cfs_rq and that propagate will happen on unthrottle time by
update_load_avg().

Now that there is no update_load_avg() on unthrottle for throttled
cfs_rq and all load tracking is done by task related operations, let the
propagate happen immediately.

While at it, add a comment to explain why cfs_rqs that are not affected
by throttle have to be added to leaf cfs_rq list in
propagate_entity_cfs_rq() per my understanding of commit 0258bdfaff5b
("sched/fair: Fix unfairness caused by missing load decay").

Signed-off-by: Aaron Lu <ziqianlu@bytedance.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Chengming Zhou <chengming.zhou@linux.dev>
kernel/sched/fair.c