Re: [PATCH v3 1/2] hung_task: Show the blocker task if the task is hung on mutex

From: Steven Rostedt
Date: Mon Feb 24 2025 - 10:00:19 EST


On Sun, 23 Feb 2025 14:53:28 -0500
Waiman Long <llong@xxxxxxxxxx> wrote:

> >>   +
> >> +#ifdef CONFIG_DETECT_HUNG_TASK_BLOCKER
> >> +static void debug_show_blocker(struct task_struct *task)
>
> I think the easiest way forward is to change it to "#if
> defined(CONFIG_DETECT_HUNG_TASK_BLOCKER) && !defined(CONFIG_PREEMPT_RT)"
> to skip this feature for PREEMPT_RT right now . Otherwise, you will have
> to deal with the rtmutex code.

If this isn't supported by PREEMPT_RT (yet), then just make the
DETECT_HUNG_TASK_BLOCKER in the Kconfig be:

Depends on !PREEMPT_RT

Don't put that dependency in the code.

-- Steve