Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1292628 > unrolled thread

[PATCH] rtmutex: Use chainwalking control enum

Started bybmouring@ni.com
First post2015-12-16 00:10 +0100
Last post2015-12-22 15:10 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] rtmutex: Use chainwalking control enum bmouring@ni.com - 2015-12-16 00:10 +0100
    Re: [PATCH] rtmutex: Use chainwalking control enum Sebastian Andrzej Siewior <bigeasy@linutronix.de> - 2015-12-22 15:10 +0100

#1292628 — [PATCH] rtmutex: Use chainwalking control enum

Frombmouring@ni.com
Date2015-12-16 00:10 +0100
Subject[PATCH] rtmutex: Use chainwalking control enum
Message-ID<qG6Tg-2gv-19@gated-at.bofh.it>
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1296800

FromSebastian Andrzej Siewior <bigeasy@linutronix.de>
Date2015-12-22 15:10 +0100
Message-ID<qIvNw-4Xf-11@gated-at.bofh.it>
In reply to#1292628
* 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web