Commit ffa60507 authored by Vincent Guittot's avatar Vincent Guittot Committed by sanglipeng
Browse files

sched/fair: Fix imbalance overflow

stable inclusion
from stable-v5.10.178
commit ba4a2f6d99fcfce62f7f768d9cfe1c839079191b
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8D927

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ba4a2f6d99fcfce62f7f768d9cfe1c839079191b



--------------------------------

[ Upstream commit 91dcf1e8 ]

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: 0b0695f2 ("sched/fair: Rework load_balance()")
Reported-by: default avatarTingjia Cao <tjcao980311@gmail.com>
Signed-off-by: default avatarVincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: default avatarTingjia Cao <tjcao980311@gmail.com>
Link: https://lore.kernel.org/lkml/CABcWv9_DAhVBOq2=W=2ypKE9dKM5s2DvoV8-U0+GDwwuKZ89jQ@mail.gmail.com/T/


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 406faa7b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment