]> git.baikalelectronics.ru Git - kernel.git/commit
sched/core: Ensure load_balance() respects the active_mask
authorPeter Zijlstra <peterz@infradead.org>
Mon, 9 Oct 2017 08:36:53 +0000 (10:36 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 10 Oct 2017 08:14:03 +0000 (10:14 +0200)
commit915ac654dda38ee0806b4b6e8e793bbff956db87
tree85959cb1c5d5ffe471c7c917a4cf80eba44bf59d
parent156c3923db043851a53e21444e651e97f6a7be52
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) <alexander.levin@verizon.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Fixes: b9f5f304a728 ("sched/topology, cpuset: Avoid spurious/wrong domain rebuilds")
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c