]> git.baikalelectronics.ru Git - kernel.git/commit
sched/fair: Fix wake_affine_llc() balancing rules
authorPeter Zijlstra <peterz@infradead.org>
Wed, 6 Sep 2017 10:51:31 +0000 (12:51 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 7 Sep 2017 07:29:31 +0000 (09:29 +0200)
commitf7b0b0dff9a24a48f2407f1d30e9b554a477c9cb
treebc8e65cc2ff460199206c3c80ce9f6b0527b364a
parent25ba3dddb082810fc608e1f9aec620579aa3a3fc
sched/fair: Fix wake_affine_llc() balancing rules

Chris Wilson reported that the SMT balance rules got the +1 on the
wrong side, resulting in a bias towards the current LLC; which the
load-balancer would then try and undo.

Reported-by: Chris Wilson <chris@chris-wilson.co.uk>
Tested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andy Lutomirski <luto@kernel.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>
Cc: linux-kernel@vger.kernel.org
Fixes: b0a40a98d0e0 ("sched/fair: Fix wake_affine() for !NUMA_BALANCING")
Link: http://lkml.kernel.org/r/20170906105131.gqjmaextmn3u6tj2@hirez.programming.kicks-ass.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c