]> git.baikalelectronics.ru Git - kernel.git/commit
sched/fair: Avoid pulling all tasks in idle balancing
authorYuyang Du <yuyang.du@intel.com>
Sun, 5 Jul 2015 22:11:51 +0000 (06:11 +0800)
committerIngo Molnar <mingo@kernel.org>
Mon, 3 Aug 2015 10:21:19 +0000 (12:21 +0200)
commite969f0d2648d6e21ca8ed1ecb86736b0d983c920
treef93f877988e036e804150ff1b4427c66ba56facc
parentf2fa392b94aeb6a0c3df3d4e374fad405d13e0bc
sched/fair: Avoid pulling all tasks in idle balancing

In idle balancing where a CPU going idle pulls tasks from another CPU,
a livelock may happen if the CPU pulls all tasks from another, makes
it idle, and this iterates. So just avoid this.

Reported-by: Rabin Vincent <rabin.vincent@axis.com>
Signed-off-by: Yuyang Du <yuyang.du@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Ben Segall <bsegall@google.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Mike Galbraith <umgwanakikbuti@gmail.com>
Cc: Morten Rasmussen <morten.rasmussen@arm.com>
Cc: Paul Turner <pjt@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20150705221151.GF5197@intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c