]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
sched/fair: Fix imbalance overflow
authorVincent Guittot <vincent.guittot@linaro.org>
Tue, 11 Apr 2023 09:06:11 +0000 (11:06 +0200)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Wed, 17 May 2023 11:34:15 +0000 (13:34 +0200)
commitb04099e7a116492c59333251d141a9a23a33c4d2
tree1fbb04ef8ca301d4ab488cdb3cd65c44c6dc5f68
parentd38b2993cd17cd55b694d1a95807e6aa780ab5fc
sched/fair: Fix imbalance overflow

BugLink: https://bugs.launchpad.net/bugs/2017219
[ Upstream commit 91dcf1e8068e9a8823e419a7a34ff4341275fb70 ]

When local group is fully busy but its average load is above system load,
computing the imbalance will overflow and local group is not the best
target for pulling this load.

Fixes: 0b0695f2b34a ("sched/fair: Rework load_balance()")
Reported-by: Tingjia Cao <tjcao980311@gmail.com>
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Tingjia Cao <tjcao980311@gmail.com>
Link: https://lore.kernel.org/lkml/CABcWv9_DAhVBOq2=W=2ypKE9dKM5s2DvoV8-U0+GDwwuKZ89jQ@mail.gmail.com/T/
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
kernel/sched/fair.c