Re: [PATCH v2] kernel/hung_task: add option to ignore task

From: Peter Zijlstra
Date: Wed Sep 28 2022 - 09:44:23 EST


On Wed, Sep 28, 2022 at 03:48:41PM +0800, Kassey Li wrote:
> By default, hung_task will iterate the tasklist and check
> state in TASK_UNINTERRUPTIBLE with a given timeout value.
>
> Here we add an option for task_struct so it can be ignored.
> Set this flag to default true, it do not break the origin design.
>
> This is useful when we set timeout value to 5s, where we just want
> to detect some tasks interested.

What the hell for?