Skip to contentSkip to conversation

selftests-mm-skip-charge_reserved_hugetlb-without-killall.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Apr 18

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: selftests: mm: skip charge_reserved_hugetlb without killall
has been removed from the -mm tree. Its filename was
selftests-mm-skip-charge_reserved_hugetlb-without-killall.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: Cao Ruichuang <[email protected]>
Subject: selftests: mm: skip charge_reserved_hugetlb without killall
Date: Fri, 10 Apr 2026 12:41:39 +0800

charge_reserved_hugetlb.sh tears down background writers with killall from psmisc. Minimal Ubuntu images do not always provide that tool, so the selftest fails in cleanup for an environment reason rather than for the hugetlb behavior it is trying to cover.

Skip the test when killall is unavailable, similar to the existing root check, so these environments report the dependency clearly instead of failing the test.

---

 tools/testing/selftests/mm/charge_reserved_hugetlb.sh |    5 +++++
 1 file changed, 5 insertions(+)
tools/testing/selftests/mm/charge_reserved_hugetlb.sh renamed from tools/testing/selftests/mm/charge_reserved_hugetlb.sh~selftests-mm-skip-charge_reserved_hugetlb-without-killall +5 -0
@@ -11,6 +11,11 @@ if [[ $(id -u) -ne 0 ]]; then
   exit $ksft_skip
 fi
 
+if ! command -v killall >/dev/null 2>&1; then
+  echo "killall not available. Skipping..."
+  exit $ksft_skip
+fi
+
 nr_hugepgs=$(cat /proc/sys/vm/nr_hugepages)
 
 fault_limit_file=limit_in_bytes

_

Patches currently in -mm which might be from [email protected] are