Re: [PATCH 2/2] hung_task: Provide runtime reset interface for hung task detector
From: Lance Yang
Date: Mon Dec 08 2025 - 23:54:31 EST
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.
Is the new file really necessary? I'd perfer if we just made the
existing hung_task_detect_count writable ;)
Just let users echo 0 (or anything) to reset it, and make sure to
update the documentation as well.
Cheers,
Lance