diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-07-17 20:46:52 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2012-03-01 10:46:54 +0100 |
commit | 3c7d51843b03a6839e9ec7cda724e54d2319a63a (patch) | |
tree | df8ac53451a7e519ddb0d349b24e6ba17ea18afb /kernel | |
parent | sched/rt: Prevent idle task boosting (diff) | |
download | linux-3c7d51843b03a6839e9ec7cda724e54d2319a63a.tar.xz linux-3c7d51843b03a6839e9ec7cda724e54d2319a63a.zip |
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 <tglx@linutronix.de>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/n/tip-vw8et3445km5b8mpihf4trae@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index c2bbdecaa27d..25e06a5e048b 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -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, |