* [folded-merged] mm-hugetlb_vmemmap-remap-head-page-to-newly-allocated-page-v4.patch removed from -mm tree
@ 2022-11-30 23:44 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-11-30 23:44 UTC (permalink / raw)
To: mm-commits, songmuchun, joao.m.martins, akpm
The quilt patch titled
Subject: mm-hugetlb_vmemmap-remap-head-page-to-newly-allocated-page-v4
has been removed from the -mm tree. Its filename was
mm-hugetlb_vmemmap-remap-head-page-to-newly-allocated-page-v4.patch
This patch was dropped because it was folded into mm-hugetlb_vmemmap-remap-head-page-to-newly-allocated-page.patch
------------------------------------------------------
From: Joao Martins <joao.m.martins@oracle.com>
Subject: mm-hugetlb_vmemmap-remap-head-page-to-newly-allocated-page-v4
Date: Thu, 10 Nov 2022 12:12:14 +0000
add smp_wmb() to ensure page contents are visible prior to PTE write
Link: https://lkml.kernel.org/r/20221110121214.6297-1-joao.m.martins@oracle.com
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/hugetlb_vmemmap.c | 7 +++++++
1 file changed, 7 insertions(+)
--- a/mm/hugetlb_vmemmap.c~mm-hugetlb_vmemmap-remap-head-page-to-newly-allocated-page-v4
+++ a/mm/hugetlb_vmemmap.c
@@ -246,6 +246,13 @@ static void vmemmap_remap_pte(pte_t *pte
if (unlikely(addr == walk->reuse_addr)) {
pgprot = PAGE_KERNEL;
list_del(&walk->reuse_page->lru);
+
+ /*
+ * Makes sure that preceding stores to the page contents from
+ * vmemmap_remap_free() become visible before the set_pte_at()
+ * write.
+ */
+ smp_wmb();
}
entry = mk_pte(walk->reuse_page, pgprot);
_
Patches currently in -mm which might be from joao.m.martins@oracle.com are
mm-hugetlb_vmemmap-remap-head-page-to-newly-allocated-page.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-11-30 23:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-30 23:44 [folded-merged] mm-hugetlb_vmemmap-remap-head-page-to-newly-allocated-page-v4.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.