sched/core: Ensure load_balance() respects the active_mask
authorPeter Zijlstra <[email protected]>
Mon, 9 Oct 2017 08:36:53 +0000 (10:36 +0200)
committerIngo Molnar <[email protected]>
Tue, 10 Oct 2017 08:14:03 +0000 (10:14 +0200)
commit024c9d2faebdad3fb43fe49ad68e91a36190f1e2
tree85959cb1c5d5ffe471c7c917a4cf80eba44bf59d
parentf2cdd9cc6c97e617b95f430f527a6e3165e1bee8
sched/core: Ensure load_balance() respects the active_mask

While load_balance() masks the source CPUs against active_mask, it had
a hole against the destination CPU. Ensure the destination CPU is also
part of the 'domain-mask & active-mask' set.

Reported-by: Levin, Alexander (Sasha Levin) <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Fixes: 77d1dfda0e79 ("sched/topology, cpuset: Avoid spurious/wrong domain rebuilds")
Signed-off-by: Ingo Molnar <[email protected]>
kernel/sched/fair.c