[PATCH 5.13 143/151] locking/rtmutex: Use the correct rtmutex debugging config option

From
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date
2021-08-16 13:31:51
Also in
stable
Reply to
Greg Kroah-Hartman, 2021-08-16
From: Zhen Lei <redacted>

commit 07d25971b220e477eb019fcb520a9f2e3ac966af upstream.

It's CONFIG_DEBUG_RT_MUTEXES not CONFIG_DEBUG_RT_MUTEX.

Fixes: f7efc4799f81 ("locking/rtmutex: Inline chainwalk depth check")
Signed-off-by: Zhen Lei <redacted>
Signed-off-by: Thomas Gleixner <redacted>
Acked-by: Will Deacon <will@kernel.org>
Acked-by: Boqun Feng <redacted>
Cc: <redacted>
Link: https://lore.kernel.org/r/20210731123011.4555-1-thunder.leizhen@huawei.com (local)
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 kernel/locking/rtmutex.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--- a/kernel/locking/rtmutex.c
+++ b/kernel/locking/rtmutex.c
@@ -343,7 +343,7 @@ static __always_inline bool
 rt_mutex_cond_detect_deadlock(struct rt_mutex_waiter *waiter,
 			      enum rtmutex_chainwalk chwalk)
 {
-	if (IS_ENABLED(CONFIG_DEBUG_RT_MUTEX))
+	if (IS_ENABLED(CONFIG_DEBUG_RT_MUTEXES))
 		return waiter != NULL;
 	return chwalk == RT_MUTEX_FULL_CHAINWALK;
 }

Thread (157 messages) 157 messages, 4 authors, last reply 2021-11-15
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help