numa,sched: fix load_to_imbalanced logic inversion
authorRik van Riel <riel@redhat.com>
Sun, 8 Jun 2014 20:55:57 +0000 (16:55 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 8 Jun 2014 21:35:05 +0000 (14:35 -0700)
commit1662867a9b2574bfdb9d4e97186aa131218d7210
tree6c8408360b9dceecad772dee5b9152a1515cf401
parentb738d764652dc5aab1c8939f637112981fce9e0e
numa,sched: fix load_to_imbalanced logic inversion

This function is supposed to return true if the new load imbalance is
worse than the old one.  It didn't.  I can only hope brown paper bags
are in style.

Now things converge much better on both the 4 node and 8 node systems.

I am not sure why this did not seem to impact specjbb performance on the
4 node system, which is the system I have full-time access to.

This bug was introduced recently, with commit e63da03639cc ("sched/numa:
Allow task switch if load imbalance improves")

Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/sched/fair.c