Commit 1dfe5ea6 authored by Ran Xiaokai's avatar Ran Xiaokai Committed by Boqun Feng
Browse files

locking/mutex: Remove redundant #ifdefs



hung_task_{set,clear}_blocker() is already guarded by
CONFIG_DETECT_HUNG_TASK_BLOCKER in hung_task.h, So remove
the redudant check of #ifdef.

Signed-off-by: default avatarRan Xiaokai <ran.xiaokai@zte.com.cn>
Acked-by: default avatarWaiman Long <longman@redhat.com>
Signed-off-by: default avatarBoqun Feng <boqun.feng@gmail.com>
Link: https://lore.kernel.org/r/20250704015218.359754-1-ranxiaokai627@163.com
parent bd27cfb5
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -191,9 +191,7 @@ static void
__mutex_add_waiter(struct mutex *lock, struct mutex_waiter *waiter,
		   struct list_head *list)
{
#ifdef CONFIG_DETECT_HUNG_TASK_BLOCKER
	hung_task_set_blocker(lock, BLOCKER_TYPE_MUTEX);
#endif
	debug_mutex_add_waiter(lock, waiter, current);

	list_add_tail(&waiter->list, list);
@@ -209,9 +207,7 @@ __mutex_remove_waiter(struct mutex *lock, struct mutex_waiter *waiter)
		__mutex_clear_flag(lock, MUTEX_FLAGS);

	debug_mutex_remove_waiter(lock, waiter, current);
#ifdef CONFIG_DETECT_HUNG_TASK_BLOCKER
	hung_task_clear_blocker();
#endif
}

/*