Re: [v4 PATCH 2/2] hung_task: Enable runtime reset of hung_task_detect_count

From: Aaron Tomlin

Date: Mon Dec 22 2025 - 20:27:27 EST


On Mon, Dec 22, 2025 at 10:21:31AM +0800, Lance Yang wrote:
> Hmm, I think we're missing the same underflow check here ...
>
> If reset happens mid-scan, it can also underflow and cause
> false positives in the diagnostics :)
>
> we should apply the same "if (current < prev) use current" logic
> here as Petr metioned before.

Hi Lance,

You are quite right; that was an oversight on my part. The underflow check
was indeed omitted in error.


Kind regards,
--
Aaron Tomlin

Attachment: signature.asc
Description: PGP signature