]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
sched/fair: Fix runnable_avg for throttled cfs
authorVincent Guittot <vincent.guittot@linaro.org>
Thu, 27 Feb 2020 15:41:15 +0000 (16:41 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 6 Mar 2020 11:57:25 +0000 (12:57 +0100)
commit6212437f0f6043e825e021e4afc5cd63e248a2b4
tree6355d6e09eee2cb5df2b3fbfaf5bf7cac17a47de
parentba4f7bc1dee318a0fd9c0e3bd46227aca21ac2f2
sched/fair: Fix runnable_avg for throttled cfs

When a cfs_rq is throttled, its group entity is dequeued and its running
tasks are removed. We must update runnable_avg with the old h_nr_running
and update group_se->runnable_weight with the new h_nr_running at each
level of the hierarchy.

Reviewed-by: Ben Segall <bsegall@google.com>
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Fixes: 9f68395333ad ("sched/pelt: Add a new runnable average signal")
Link: https://lkml.kernel.org/r/20200227154115.8332-1-vincent.guittot@linaro.org
kernel/sched/fair.c