• Peter Zijlstra's avatar
    sched: rt-group: heirarchy aware throttle · ad2a3f13
    Peter Zijlstra authored
    The bandwidth throttle code dequeues a group when it runs out of quota, and
    re-queues it once the period rolls over and the quota gets refreshed.
    
    Sadly it failed to take the hierarchy into consideration. Share more of the
    enqueue/dequeue code with regular task opterations.
    
    Also, some operations like sched_setscheduler() can dequeue/enqueue tasks that
    are in throttled runqueues, we should not inadvertly re-enqueue empty runqueues
    so check for that.
    Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
    Tested-by: default avatarDaniel K. <dk@uw.no>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    ad2a3f13
sched_rt.c 31 KB