• Peter Zijlstra's avatar
    sched: rt-group: deal with PI · 23b0fdfc
    Peter Zijlstra authored
    Steven mentioned the fun case where a lock holding task will be throttled.
    
    Simple fix: allow groups that have boosted tasks to run anyway.
    
    If a runnable task in a throttled group gets boosted the dequeue/enqueue
    done by rt_mutex_setprio() is enough to unthrottle the group.
    
    This is ofcourse not quite correct. Two possible ways forward are:
      - second prio array for boosted tasks
      - boost to a prio ceiling (this would also work for deadline scheduling)
    Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    23b0fdfc
sched_rt.c 28.1 KB