• Peter Zijlstra's avatar
    sched: rt-bandwidth fixes · 9a7e0b18
    Peter Zijlstra authored
    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: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    9a7e0b18
sched.c 221 KB