OSDN Git Service

sched/fair: Fix imbalance overflow
authorVincent Guittot <vincent.guittot@linaro.org>
Tue, 11 Apr 2023 09:06:11 +0000 (11:06 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 12 Apr 2023 14:46:30 +0000 (16:46 +0200)
commit91dcf1e8068e9a8823e419a7a34ff4341275fb70
treeef17c6282989ffebc78319863054b07d189fd18a
parent09a9639e56c01c7a00d6c0ca63f4c7c41abe075d
sched/fair: Fix imbalance overflow

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/
kernel/sched/fair.c