diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2006-06-27 05:55:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-27 20:32:48 -0400 |
commit | 95e02ca9bb5324360e7dea1ea1c563036d84a5e6 (patch) | |
tree | 0336dd808abe113b42f53a8f700d50ea6ba674ff /kernel/sched.c | |
parent | 0bafd214e4ba55dc1fb81a3031d0249292f1bc05 (diff) |
[PATCH] rtmutex: Propagate priority settings into PI lock chains
When the priority of a task, which is blocked on a lock, changes we must
propagate this change into the PI lock chain. Therefor the chain walk code
is changed to get rid of the references to current to avoid false positives
in the deadlock detector, as setscheduler might be called by a task which
holds the lock on which the task whose priority is changed is blocked.
Also add some comments about the get/put_task_struct usage to avoid
confusion.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 7a30addfd235..2629c1711fd6 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -4070,6 +4070,8 @@ recheck: | |||
4070 | __task_rq_unlock(rq); | 4070 | __task_rq_unlock(rq); |
4071 | spin_unlock_irqrestore(&p->pi_lock, flags); | 4071 | spin_unlock_irqrestore(&p->pi_lock, flags); |
4072 | 4072 | ||
4073 | rt_mutex_adjust_pi(p); | ||
4074 | |||
4073 | return 0; | 4075 | return 0; |
4074 | } | 4076 | } |
4075 | EXPORT_SYMBOL_GPL(sched_setscheduler); | 4077 | EXPORT_SYMBOL_GPL(sched_setscheduler); |