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

From: Kassey Li
Date: Mon Sep 26 2022 - 22:05:09 EST




On 9/23/2022 7:04 PM, Peter Zijlstra wrote:
On Fri, Sep 23, 2022 at 04:53:35PM +0800, Kassey Li wrote:
By default, hung_task will iterate the tasklist and check
state in TASK_UNINTERRUPTIBLE with a given timeout value.

Some tasks may in this state as expected but reported by hung_task.

Please explain..
I want to set timout value as 60s, 20s, 10s, or even 5s to more aggressive to detect my VIP tasks "init", "surfaceflinger", "system_server" for example as debug.

many other tasks wait for IO, mutex, delayed timer ...
will hit this while we want to ignore.