From: Steven Rostedt Subject: [PATCH RT 2/7] rtmutex: Use chainwalking control enum Date: Fri, 26 Feb 2016 16:44:10 -0500 Message-ID: <20160226214428.221617917@goodmis.org> References: <20160226214408.590103414@goodmis.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Cc: Thomas Gleixner , Carsten Emde , Sebastian Andrzej Siewior , John Kacur , Paul Gortmaker , Brad Mouring To: linux-kernel@vger.kernel.org, linux-rt-users Return-path: Content-Disposition: inline; filename=0002-rtmutex-Use-chainwalking-control-enum.patch Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-rt-users.vger.kernel.org 3.2.77-rt111-rc1 stable review patch. If anyone has any objections, please let me know. ------------------ From: "bmouring@ni.com" 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. Cc: Thomas Gleixner Signed-off-by: Brad Mouring Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Steven Rostedt --- kernel/rtmutex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/rtmutex.c b/kernel/rtmutex.c index f074834c1ad6..2a4c34bb586f 100644 --- a/kernel/rtmutex.c +++ b/kernel/rtmutex.c @@ -1179,7 +1179,7 @@ static void noinline __sched rt_spin_lock_slowlock(struct rt_mutex *lock) __set_current_state(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.7.0