]> asedeno.scripts.mit.edu Git - linux.git/commit
sched: Migrate throttled tasks on HOTPLUG
authorPaul Turner <pjt@google.com>
Thu, 21 Jul 2011 16:43:38 +0000 (09:43 -0700)
committerIngo Molnar <mingo@elte.hu>
Sun, 14 Aug 2011 10:03:44 +0000 (12:03 +0200)
commit8cb120d3e41a0464a559d639d519cef563717a4e
tree4d17ae0d3d9a18cb502e5d098bd48b7436620754
parent5238cdd3873e67a98b28c1161d65d2a615c320a3
sched: Migrate throttled tasks on HOTPLUG

Throttled tasks are invisisble to cpu-offline since they are not eligible for
selection by pick_next_task().  The regular 'escape' path for a thread that is
blocked at offline is via ttwu->select_task_rq, however this will not handle a
throttled group since there are no individual thread wakeups on an unthrottle.

Resolve this by unthrottling offline cpus so that threads can be migrated.

Signed-off-by: Paul Turner <pjt@google.com>
Reviewed-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20110721184757.989000590@google.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c