sched/rt: Do not submit new work when PI-blocked

When we are PI-blocked then we want to get things done ASAP.

Signed-off-by: Thomas Gleixner <[email protected]>
Acked-by: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
Thomas Gleixner 2011-07-17 20:46:52 +02:00 • committed by Ingo Molnar
commit 3c7d51843b
2 changed files with 9 additions and 1 deletions

View file

@ -3227,7 +3227,7 @@ need_resched:
static inline void sched_submit_work(struct task_struct *tsk)
{
if (!tsk->state)
if (!tsk->state || tsk_is_pi_blocked(tsk))
return;
/*
* If we are going to sleep and we have plugged IO queued,