As suggested by Andrew Morton in [1], we need a general mechanism
that allows the hung task detector to ignore unnecessary hung
tasks. This patch set implements this functionality and enables it
in memcg.
Patch 1 introduces touch_hung_task_detector(), which allows a task to
mark itself and then hung task detector will ignore warnings for it.
Patch 2 uses touch_hung_task_detector() in the final phase of memcg
teardown to eliminate the hung task warning.
[1]: https://lore.kernel.org/all/20250917152155.5a8ddb3e4ff813289ea0b4c9@linux-foundation.org/
Julian Sun (2):
hung_task: Introduce touch_hung_task_dector().
memcg: Don't trigger hung task warnings when memcg is releasing
resources.
include/linux/nmi.h | 2 ++
kernel/hung_task.c | 13 +++++++++++++
mm/memcontrol.c | 5 ++++-
3 files changed, 19 insertions(+), 1 deletion(-)
--
2.39.5