Re: [PATCH 2/2] hung_task: Always print basic hung task info header

From: Lance Yang

Date: Tue Aug 04 2026 - 00:14:05 EST



On Mon, Aug 03, 2026 at 08:15:42PM -0400, Aaron Tomlin wrote:
>From: Petr Mladek <pmladek@xxxxxxxx>
>
>Currently, hung_task_info() completely suppresses any warning messages
>once the warning budget is reached. This leaves the system completely
>blind to any future hung tasks, even though we only wanted to suppress
>heavy process stack dumps.
>
>Modify hung_task_info() to always print the basic single-line error message
>about a hung task, regardless of whether the warning budget has been
>exhausted. Restrict only the verbose details (such as stack dumps,
>taint/release status, and blockers) to when the warning budget is intact
>or panic is triggered.
>
>Additionally, update the notice printed upon warning exhaustion to clarify
>that future reports will only omit process details rather than being completely
>suppressed.
>
>Assisted-by: gemini-3.5-flash
>Signed-off-by: Petr Mladek <pmladek@xxxxxxxx>
>---

Reviewed-by: Lance Yang <lance.yang@xxxxxxxxx>