* [PATCH] rtmutex: Use chainwalking control enum
@ 2015-12-15 23:07 bmouring
2015-12-22 14:02 ` Sebastian Andrzej Siewior
0 siblings, 1 reply; 2+ messages in thread
From: bmouring @ 2015-12-15 23:07 UTC (permalink / raw)
To: linux-kernel; +Cc: linux-rt-users, Thomas Gleixner, Brad Mouring
In 8930ed80 (rtmutex: Cleanup deadlock detector debug logic),
chainwalking control enums were introduced to limit the deadlock
detection logic. One of the calls to task_blocks_on_rt_mutex was
missed when converting to use the enums.
Signed-off-by: Brad Mouring <brad.mouring@ni.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
---
kernel/locking/rtmutex.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/locking/rtmutex.c b/kernel/locking/rtmutex.c
index 2026759..e0b0d9b 100644
--- a/kernel/locking/rtmutex.c
+++ b/kernel/locking/rtmutex.c
@@ -1008,7 +1008,7 @@ static void noinline __sched rt_spin_lock_slowlock(struct rt_mutex *lock)
__set_current_state_no_track(TASK_UNINTERRUPTIBLE);
pi_unlock(&self->pi_lock);
- ret = task_blocks_on_rt_mutex(lock, &waiter, self, 0);
+ ret = task_blocks_on_rt_mutex(lock, &waiter, self, RT_MUTEX_MIN_CHAINWALK);
BUG_ON(ret);
for (;;) {
--
2.6.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] rtmutex: Use chainwalking control enum
2015-12-15 23:07 [PATCH] rtmutex: Use chainwalking control enum bmouring
@ 2015-12-22 14:02 ` Sebastian Andrzej Siewior
0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Andrzej Siewior @ 2015-12-22 14:02 UTC (permalink / raw)
To: bmouring; +Cc: linux-kernel, linux-rt-users, Thomas Gleixner, Brad Mouring
* bmouring@ni.com | 2015-12-15 17:07:30 [-0600]:
>In 8930ed80 (rtmutex: Cleanup deadlock detector debug logic),
>chainwalking control enums were introduced to limit the deadlock
>detection logic. One of the calls to task_blocks_on_rt_mutex was
>missed when converting to use the enums.
>
>Signed-off-by: Brad Mouring <brad.mouring@ni.com>
>Cc: Thomas Gleixner <tglx@linutronix.de>
Applied
Sebastian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-12-22 14:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-15 23:07 [PATCH] rtmutex: Use chainwalking control enum bmouring
2015-12-22 14:02 ` Sebastian Andrzej Siewior
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).