All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org,sj@kernel.org,shuah@kernel.org,
	arijit.desai@crusoe.ai,lienze@kylinos.cn,akpm@linux-foundation.org
Subject: + selftests-damon-sysfs_memcg_path_leak-use-common-check_dependencies.patch added to mm-new branch
Date: Thu, 03 Dec 2026 10:31:46 -0800	[thread overview]
Message-ID: <20261203183147.2770F1F000C1@smtp.kernel.org> (raw)
In-Reply-To: <20261203153215.733163-2-sj@kernel.org>


The patch titled
     Subject: selftests/damon/sysfs_memcg_path_leak: use common check_dependencies()
has been added to the -mm mm-new branch.  Its filename is
     selftests-damon-sysfs_memcg_path_leak-use-common-check_dependencies.patch

This patch will shortly appear at
     https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/selftests-damon-sysfs_memcg_path_leak-use-common-check_dependencies.patch

This patch will later appear in the mm-new branch at
    git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

Note, mm-new is a provisional staging ground for work-in-progress
patches, and acceptance into mm-new is a notification for others take
notice and to finish up reviews.  Please do not hesitate to respond to
review feedback and post updated versions to replace or incrementally
fixup patches in mm-new.

The mm-new branch of mm.git is not included in linux-next

If a few days of testing in mm-new is successful, the patch will me moved
into mm.git's mm-unstable branch, which is included in linux-next

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next via various
branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there most days

------------------------------------------------------
From: Enze Li <lienze@kylinos.cn>
Subject: selftests/damon/sysfs_memcg_path_leak: use common check_dependencies()
Date: Thu, 03 Dec 2026 07:32:13 -0800

Patch series "mm/damon: cleanup memcg_path_leak selftest and fix
DAMON_RECLAIM age_ms".

Cleanup sysfs_memcg_path_leak to consistently use check_dependencies()
helper, via patch 1.  Fixup DAMON_RECLAIM age_ms parameter to use age_ms
DAMOS filter to properly work in the intervals auto-tuning mode.

This is a batched reposting of separately posted and reviewed patches
for being merged into the mm.git.  Refer to changelog on each patch for
changes that were made before this reposting.


This patch (of 2):

The sysfs_memcg_path_leak test is the only DAMON selftest shell script
that does not source _common.sh.  Instead it open-codes the root
permission check that check_dependencies() already provides.

Source _common.sh and call check_dependencies() to drop the duplicate.

Link: https://lore.kernel.org/20261203153215.733163-1-sj@kernel.org
Link: https://patch.msgid.link/20261203153215.733163-2-sj@kernel.org
Signed-off-by: Enze Li <lienze@kylinos.cn>
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: Shuah Khan <shuah@kernel.org>
Cc: Arijit Desai <arijit.desai@crusoe.ai>

 tools/testing/selftests/damon/sysfs_memcg_path_leak.sh |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

--- a/tools/testing/selftests/damon/sysfs_memcg_path_leak.sh~selftests-damon-sysfs_memcg_path_leak-use-common-check_dependencies
+++ a/tools/testing/selftests/damon/sysfs_memcg_path_leak.sh
@@ -1,14 +1,12 @@
 #!/bin/bash
 # SPDX-License-Identifier: GPL-2.0
 
+source _common.sh
+
 # Kselftest framework requirement - SKIP code is 4.
 ksft_skip=4
 
-if [ $EUID -ne 0 ]
-then
-	echo "Run as root"
-	exit $ksft_skip
-fi
+check_dependencies
 
 damon_sysfs="/sys/kernel/mm/damon/admin"
 if [ ! -d "$damon_sysfs" ]
_

Patches currently in -mm which might be from lienze@kylinos.cn are

docs-hugetlbpagerst-clarify-hugepages_total-in-hugetlbpagerst.patch
mm-hugetlb-drop-unused-mm-parameter-from-unmap_ref_private.patch
mm-hugetlb_cma-remove-two-unused-include-files.patch
mm-damon-core-use-list_nextprev_entry-in-damon_nextprev_region.patch
docs-mm-damon-design-replace-same-to-with-same-as.patch
selftests-damon-sysfs_memcg_path_leak-use-common-check_dependencies.patch


  reply	other threads:[~2026-12-03 18:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 15:32 [PATCH 0/2] mm/damon: cleanup memcg_path_leak selftest and fix DAMON_RECLAIM age_ms SJ Park
2026-12-03 15:32 ` [PATCH 1/2] selftests/damon/sysfs_memcg_path_leak: use common check_dependencies() SJ Park
2026-12-03 18:31   ` Andrew Morton [this message]
2026-12-03 15:32 ` [PATCH 2/2] mm/damon/reclaim: use age_ms filter for min_age SJ Park
2026-12-03 18:31   ` + mm-damon-reclaim-use-age_ms-filter-for-min_age.patch added to mm-new branch Andrew Morton
2026-12-03 15:52 ` [PATCH 0/2] mm/damon: cleanup memcg_path_leak selftest and fix DAMON_RECLAIM age_ms sashiko-bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261203183147.2770F1F000C1@smtp.kernel.org \
    --to=akpm@linux-foundation.org \
    --cc=arijit.desai@crusoe.ai \
    --cc=lienze@kylinos.cn \
    --cc=mm-commits@vger.kernel.org \
    --cc=shuah@kernel.org \
    --cc=sj@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.