All of lore.kernel.org
 help / color / mirror / Atom feed
* [merged mm-stable] selftests-damon-sysfspy-clean-up-sh-processes-used-for-obsolete_target-test.patch removed from -mm tree
@ 2026-10-07  0:51 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2026-10-07  0:51 UTC (permalink / raw)
  To: mm-commits, zhaozhengzhuo, zenghui.yu, sj, shuah, liyouhong,
	lienze, jaeyeon.lee.dev, gregkh, harimishal1, akpm


The quilt patch titled
     Subject: selftests/damon/sysfs.py: clean up sh processes used for obsolete_target test
has been removed from the -mm tree.  Its filename was
     selftests-damon-sysfspy-clean-up-sh-processes-used-for-obsolete_target-test.patch

This patch was dropped because it was merged into the mm-stable branch
of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Hari Mishal <harimishal1@gmail.com>
Subject: selftests/damon/sysfs.py: clean up sh processes used for obsolete_target test
Date: Mon, 31 Aug 2026 07:26:06 -0700

The obsolete_target test spawns three sh processes and uses their pids as
DAMON monitoring targets.  These processes are never terminated or waited
on, so they are left running (or become zombies) as orphaned children
after the test program exits.

Terminate each process and communicate() with it after the targets are no
longer needed, so it exits and gets reaped instead of being leaked.

Link: https://lore.kernel.org/20260831142611.77572-5-sj@kernel.org
Signed-off-by: Hari Mishal <harimishal1@gmail.com>
Signed-off-by: SJ Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: SJ Park <sj@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Enze Li <lienze@kylinos.cn>
Cc: Jaeyeon Lee <jaeyeon.lee.dev@gmail.com>
Cc: Li Youhong <liyouhong@kylinos.cn>
Cc: Shuah Khan <shuah@kernel.org>
Cc: "Zenghui Yu (Huawei)" <zenghui.yu@linux.dev>
Cc: zhaozhengzhuo <zhaozhengzhuo@uniontech.com>
---

 tools/testing/selftests/damon/sysfs.py |    4 ++++
 1 file changed, 4 insertions(+)

--- a/tools/testing/selftests/damon/sysfs.py~selftests-damon-sysfspy-clean-up-sh-processes-used-for-obsolete_target-test
+++ a/tools/testing/selftests/damon/sysfs.py
@@ -385,6 +385,10 @@ def main():
     assert_ctxs_committed(kdamonds)
     kdamonds.stop()
 
+    for proc in (proc1, proc2, proc3):
+        proc.terminate()
+        proc.communicate()
+
     test_memcg_filter_memcg_path_staging()
 
 if __name__ == '__main__':
_

Patches currently in -mm which might be from harimishal1@gmail.com are



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-07  0:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-07  0:51 [merged mm-stable] selftests-damon-sysfspy-clean-up-sh-processes-used-for-obsolete_target-test.patch removed from -mm tree Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.