mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Suppress undesirable hung task warnings.
@ 2025-09-24  3:40 Julian Sun
  2025-09-24  3:40 ` [PATCH v2 1/2] hung_task: Introduce touch_hung_task_detector() Julian Sun
  2025-09-24  3:41 ` [PATCH v2 2/2] memcg: Don't trigger hung task warnings when memcg is releasing resources Julian Sun
  0 siblings, 2 replies; 8+ messages in thread
From: Julian Sun @ 2025-09-24  3:40 UTC (permalink / raw)
  To: cgroups, linux-kernel
  Cc: akpm, lance.yang, mhiramat, yangyicong, will, dianders, mingo,
	lihuafei1, hannes, mhocko, roman.gushchin, shakeel.butt,
	muchun.song, tj, peterz

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-09-25 13:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-24  3:40 [PATCH v2 0/2] Suppress undesirable hung task warnings Julian Sun
2025-09-24  3:40 ` [PATCH v2 1/2] hung_task: Introduce touch_hung_task_detector() Julian Sun
2025-09-25 13:33   ` Masami Hiramatsu
2025-09-24  3:41 ` [PATCH v2 2/2] memcg: Don't trigger hung task warnings when memcg is releasing resources Julian Sun
2025-09-24  6:32   ` Peter Zijlstra
2025-09-24  7:50     ` [External] " Julian Sun
2025-09-24  8:28       ` Peter Zijlstra
2025-09-24 10:36         ` Julian Sun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®