Re: [PATCH 2/2] hung_task: Provide runtime reset interface for hung task detector

From: Aaron Tomlin
Date: Tue Dec 09 2025 - 17:06:33 EST


On Tue, Dec 09, 2025 at 12:54:14PM +0800, Lance Yang wrote:
> On 2025/12/9 12:12, Aaron Tomlin wrote:
> > This patch introduces a new write-only sysfs file,
> > hung_task_detect_count_reset, directly under /sys/kernel/.
> > This file exposes an explicit control point for resetting the
> > /proc/sys/kernel/hung_task_detect_count counter.

Hi Lance,

> Is the new file really necessary? I'd perfer if we just made the
> existing hung_task_detect_count writable ;)

Acknowledged. The primary motivation here was initiating a migration away
from the legacy procfs interface.

> Just let users echo 0 (or anything) to reset it, and make sure to
> update the documentation as well.

Understood. I will send a v2.

Kind regards,
--
Aaron Tomlin