Skip to contentSkip to conversation

Patch "selftests: mm: fix the incorrect usage() info of khugepaged" has been added to the 6.11-stable tree

DISCUSSION Nanyong Sun 2 participants 2 messages Oct 23, 2024 1 message not in the archive Stable branch

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 7 lines · Sasha Levin

This is a note to let you know that I've just added the patch titled

selftests: mm: fix the incorrect usage() info of khugepaged

to the 6.11-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

Quoted 6 lines

The filename of the patch is:
selftests-mm-fix-the-incorrect-usage-info-of-khugepa.patch
and it can be found in the queue-6.11 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Hi,
  I don't think this patch needs to be added to the stable tree because this just fixes usage information, as Andrew had previously said:
https://lore.kernel.org/lkml/[email protected]/

Quoted 39 lines

commit ad8b93ffe0a86e3b6be297826cd34b12080fc877

Author: Nanyong Sun <[email protected]>
Date:   Tue Oct 15 10:02:57 2024 +0800

selftests: mm: fix the incorrect usage() info of khugepaged

[ Upstream commit 3e822bed2fbd1527d88f483342b1d2a468520a9a ]

The mount option of tmpfs should be huge=advise, not madvise which is not supported and may mislead the users.

Fixes 1b03d0d558a2 ("selftests/vm: add thp collapse file and tmpfs testing")
Cc Kefeng Wang <[email protected]>
Cc Shuah Khan <[email protected]>
Cc Zach O'Keefe <[email protected]>
tools/testing/selftests/mm/khugepaged.c +1 -1
index 829320a519e72..89dec42986825 100644
@@ -1091,7 +1091,7 @@ static void usage(void)
  	fprintf(stderr, "\n\t\"file,all\" mem_type requires kernel built with\n");
  	fprintf(stderr,	"\tCONFIG_READ_ONLY_THP_FOR_FS=y\n");
  	fprintf(stderr, "\n\tif [dir] is a (sub)directory of a tmpfs mount, tmpfs must be\n");
-	fprintf(stderr,	"\tmounted with huge=madvise option for khugepaged tests to work\n");
+	fprintf(stderr,	"\tmounted with huge=advise option for khugepaged tests to work\n");
  	fprintf(stderr,	"\n\tSupported Options:\n");
  	fprintf(stderr,	"\t\t-h: This help message.\n");
  	fprintf(stderr,	"\t\t-s: mTHP size, expressed as page order.\n");

.

maintainer
#2 lore raw
Quoted 13 lines · Nanyong Sun
Quoted 11 lines · Sasha Levin

This is a note to let you know that I've just added the patch titled

selftests: mm: fix the incorrect usage() info of khugepaged

to the 6.11-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
selftests-mm-fix-the-incorrect-usage-info-of-khugepa.patch
and it can be found in the queue-6.11 subdirectory.

Quoted 6 lines
Quoted 2 lines

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Hi,
  I don't think this patch needs to be added to the stable tree because this just fixes usage information, as Andrew had previously said:
https://lore.kernel.org/lkml/[email protected]/

I'll drop it, but really - why not? It's a cheap fix that is very unlikely to introduce regressions and it improves the user's experience.

Signature · 2 lines
Thanks,
Sasha