mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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:
parent
1c4dd99bed
commit
3c7d51843b
2 changed files with 9 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue