Re: [PATCH] kernel/hung_task: Add a whitelist and blacklist mechanism.

From: Peter Zijlstra
Date: Sat Apr 17 2021 - 10:38:04 EST


On Sat, Apr 17, 2021 at 07:13:01AM -0700, zhouchuangao wrote:
> eg:
> In Android system, we usually and some processes to the whitelist.
> static task_t task_whitelist[] = {
> {"mdrt_thread", HUNG_TASK_WHITELIST},
> {"chre_kthread", HUNG_TASK_WHITELIST},
> {"scp_power_reset", HUNG_TASK_WHITELIST},
> {"ccci_fsm1", HUNG_TASK_WHITELIST},
> {"qos_ipi_recv", HUNG_TASK_WHITELIST},
> {NULL, 0},
> };

What are these tasks doing that the hung-task detector fires on them?
Should you fix that instead?