]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
sched: fix rt-bandwidth hotplug race
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Thu, 14 Aug 2008 13:49:00 +0000 (15:49 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 14 Aug 2008 13:50:58 +0000 (15:50 +0200)
commitf1679d08480008e06fd619c71635ed33274e2595
treebf38250a5b7c969a6b91ef1043f0cfdd02f966d4
parent09f2724a786f76475ef2985cf84f5359c553aade
sched: fix rt-bandwidth hotplug race

When we hot-unplug a cpu and rebuild the sched-domain, all cpus will be
detatched. Alex observed the case where a runqueue was stealing bandwidth
from an already disabled runqueue to satisfy its own needs.

Stop this by skipping over already disabled runqueues.

Reported-by: Alex Nixon <alex.nixon@citrix.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Tested-by: Alex Nixon <alex.nixon@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_rt.c