]> git.baikalelectronics.ru Git - kernel.git/commit
sched: Reset loop counters if all tasks are pinned and we need to redo load balance
authorPrashanth Nageshappa <prashanth@linux.vnet.ibm.com>
Tue, 19 Jun 2012 12:22:07 +0000 (17:52 +0530)
committerIngo Molnar <mingo@kernel.org>
Tue, 24 Jul 2012 11:55:37 +0000 (13:55 +0200)
commitcdc6c5c6d5ad99a88492ae4128dbe46d08e91403
tree230cd53d8669da7c3881ded77651422b89615c16
parentd745028abb07a58c325628168477e4c8a118cca1
sched: Reset loop counters if all tasks are pinned and we need to redo load balance

While load balancing, if all tasks on the source runqueue are pinned,
we retry after excluding the corresponding source cpu. However, loop counters
env.loop and env.loop_break are not reset before retrying, which can lead
to failure in moving the tasks. In this patch we reset env.loop and
env.loop_break to their inital values before we retry.

Signed-off-by: Prashanth Nageshappa <prashanth@linux.vnet.ibm.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/4FE06EEF.2090709@linux.vnet.ibm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c