Repository navigation
Commit 4c37b06
sched/fair: Keep load_avg and load_sum synced
commit 7c7ad62 upstream.
when removing a cfs_rq from the list we only check _sum value so we must
ensure that _avg and _sum stay synced so load_sum can't be null whereas
load_avg is not after propagating load in the cgroup hierarchy.
Use load_avg to compute load_sum similarly to what is done for util_sum
and runnable_sum.
Fixes: 0e2d2aa ("sched/fair: Rewrite PELT migration propagation")
Reported-by: Odin Ugedal <odin@uged.al>
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Odin Ugedal <odin@uged.al>
Link: https://lkml.kernel.org/r/20210527122916.27683-2-vincent.guittot@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent c64a3be commit 4c37b06
1 file changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3501 | 3501 | | |
3502 | 3502 | | |
3503 | 3503 | | |
3504 | | - | |
| 3504 | + | |
3505 | 3505 | | |
3506 | 3506 | | |
3507 | | - | |
3508 | 3507 | | |
3509 | 3508 | | |
3510 | 3509 | | |
| |||
3551 | 3550 | | |
3552 | 3551 | | |
3553 | 3552 | | |
3554 | | - | |
3555 | | - | |
| 3553 | + | |
3556 | 3554 | | |
3557 | 3555 | | |
3558 | 3556 | | |
3559 | | - | |
3560 | | - | |
| 3557 | + | |
| 3558 | + | |
| 3559 | + | |
3561 | 3560 | | |
3562 | 3561 | | |
3563 | 3562 | | |
| |||
0 commit comments