* + hugetlbfs-fix-issue-of-preallocation-of-gigantic-pages-cant-work.patch added to -mm tree
@ 2021-11-29 20:26 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2021-11-29 20:26 UTC (permalink / raw)
To: mike.kravetz, mlevitsk, mm-commits, yaozhenguo1
The patch titled
Subject: hugetlbfs: fix issue of preallocation of gigantic pages can't work
has been added to the -mm tree. Its filename is
hugetlbfs-fix-issue-of-preallocation-of-gigantic-pages-cant-work.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/hugetlbfs-fix-issue-of-preallocation-of-gigantic-pages-cant-work.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/hugetlbfs-fix-issue-of-preallocation-of-gigantic-pages-cant-work.patch
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 and is updated
there every 3-4 working days
------------------------------------------------------
From: Zhenguo Yao <yaozhenguo1@gmail.com>
Subject: hugetlbfs: fix issue of preallocation of gigantic pages can't work
Preallocation of gigantic pages can't work bacause of commit b5389086ad7b
("hugetlbfs: extend the definition of hugepages parameter to support node
allocation"). When nid is NUMA_NO_NODE(-1), alloc_bootmem_huge_page will
always return without doing allocation. Fix this by adding more check.
Link: https://lkml.kernel.org/r/20211129133803.15653-1-yaozhenguo1@gmail.com
Fixes: b5389086ad7b ("hugetlbfs: extend the definition of hugepages parameter to support node allocation")
Signed-off-by: Zhenguo Yao <yaozhenguo1@gmail.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/hugetlb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/mm/hugetlb.c~hugetlbfs-fix-issue-of-preallocation-of-gigantic-pages-cant-work
+++ a/mm/hugetlb.c
@@ -2973,7 +2973,7 @@ int __alloc_bootmem_huge_page(struct hst
struct huge_bootmem_page *m = NULL; /* initialize for clang */
int nr_nodes, node;
- if (nid >= nr_online_nodes)
+ if (nid != NUMA_NO_NODE && nid >= nr_online_nodes)
return 0;
/* do node specific alloc */
if (nid != NUMA_NO_NODE) {
_
Patches currently in -mm which might be from yaozhenguo1@gmail.com are
hugetlbfs-fix-issue-of-preallocation-of-gigantic-pages-cant-work.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-11-29 22:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-29 20:26 + hugetlbfs-fix-issue-of-preallocation-of-gigantic-pages-cant-work.patch added to -mm tree akpm
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.