We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fae37fe commit f7efc47Copy full SHA for f7efc47
kernel/locking/rtmutex.c
@@ -343,14 +343,9 @@ static void rt_mutex_adjust_prio(struct task_struct *p)
343
static bool rt_mutex_cond_detect_deadlock(struct rt_mutex_waiter *waiter,
344
enum rtmutex_chainwalk chwalk)
345
{
346
- /*
347
- * This is just a wrapper function for the following call,
348
- * because debug_rt_mutex_detect_deadlock() smells like a magic
349
- * debug feature and I wanted to keep the cond function in the
350
- * main source file along with the comments instead of having
351
- * two of the same in the headers.
352
- */
353
- return debug_rt_mutex_detect_deadlock(waiter, chwalk);
+ if (IS_ENABLED(CONFIG_DEBUG_RT_MUTEX))
+ return waiter != NULL;
+ return chwalk == RT_MUTEX_FULL_CHAINWALK;
354
}
355
356
/*
0 commit comments