Skip to contentSkip to conversation

mm-replace-read_once-in-pud_trans_unstable.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Mar 24

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm: replace READ_ONCE() in pud_trans_unstable()
has been removed from the -mm tree. Its filename was
mm-replace-read_once-in-pud_trans_unstable.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: Anshuman Khandual <[email protected]>
Subject: mm: replace READ_ONCE() in pud_trans_unstable()
Date: Fri, 27 Feb 2026 04:03:00 +0000

Replace READ_ONCE() with the existing standard page table accessor for PUD aka pudp_get() in pud_trans_unstable(). This does not create any functional change for platforms that do not override pudp_get(), which still defaults to READ_ONCE().

---

 include/linux/pgtable.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/pgtable.h renamed from include/linux/pgtable.h~mm-replace-read_once-in-pud_trans_unstable +1 -1
@@ -2004,7 +2004,7 @@ static inline int pud_trans_unstable(pud
 {
 #if defined(CONFIG_TRANSPARENT_HUGEPAGE) && \
 	defined(CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD)
-	pud_t pudval = READ_ONCE(*pud);
+	pud_t pudval = pudp_get(pud);
 
 	if (pud_none(pudval) || pud_trans_huge(pudval))
 		return 1;

_

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