]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
sched: rt-bandwidth fixes
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Tue, 19 Aug 2008 10:33:06 +0000 (12:33 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 19 Aug 2008 11:10:12 +0000 (13:10 +0200)
commit9a7e0b180da21885988d47558671cf580279f9d6
treeab1e69b08eb393a91f7bcfa1cc97170d81f36814
parenteb755805f21bd5ded84026e167b7a90887ac42e5
sched: rt-bandwidth fixes

The last patch allows sysctl_sched_rt_runtime to disable bandwidth accounting
for the group scheduler - however it doesn't deal with sched_setscheduler(),
which will keep tasks out of groups that have no assigned runtime.

If we relax this, we get into the situation where RT tasks can get into a group
when we disable bandwidth control, and then starve them by enabling it again.

Rework the schedulability code to check for this condition and fail to turn
on bandwidth control with -EBUSY when this situation is found.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c