Re: [PATCH v6] hung_task: Deduplicate identical hang reports using explicit blocker tracking
From: Andrew Morton
Date: Mon Jul 20 2026 - 02:03:18 EST
On Sun, 19 Jul 2026 12:13:05 -0400 Aaron Tomlin <atomlin@xxxxxxxxxxx> wrote:
> Currently, during severe lock contention, multiple tasks can hang while
> waiting on the exact same resource. The khungtaskd kthread
> indiscriminately reports every single instance with a stack trace.
> This can roll the kernel ring buffer and prematurely exhaust the
> kernel.hung_task_warnings budget. Consequently, the kernel is left
> entirely blind to subsequent, unrelated deadlocks.
This does seem something we'd like to address.
> To preserve the warning budget and ring buffer without sacrificing
> observability, this patch introduces a two-tier deduplication mechanism:
>
Thanks. Hopefully Petr and Lance will be able to review this version.
AI review might have found an issue:
https://sashiko.dev/#/patchset/20260719161305.428947-1-atomlin@xxxxxxxxxxx