From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org,ziy@nvidia.com,willy@infradead.org,
vbabka@kernel.org,usama.arif@linux.dev,surenb@google.com,
shakeel.butt@linux.dev,ryan.roberts@arm.com,roman.gushchin@linux.dev,
nico.pache@linux.dev,muchun.song@linux.dev,mhocko@kernel.org,
liam@infradead.org,lance.yang@linux.dev,kas@kernel.org,hannes@cmpxchg.org,
escape@deepseek.com,dev.jain@arm.com,david@kernel.org,
daejun7.park@samsung.com,brendan.jackman@linux.dev,
baolin.wang@linux.alibaba.com,baohua@kernel.org,akpm@linux-foundation.org
Subject: [folded-merged] mm-huge_memory-set-memcg_data-before-a-split-page-leaves-the-folio-fix.patch removed from -mm tree
Date: Thu, 03 Dec 2026 16:10:09 -0800 [thread overview]
Message-ID: <20261204001009.D55E81F000CE@smtp.kernel.org> (raw)
In-Reply-To: <DMMKKOIGA9UJ.353PCUUMFLCCJ@nvidia.com>
The quilt patch titled
Subject: mm/huge_memory: explain memcg_data ordering during a folio split
has been removed from the -mm tree. Its filename was
mm-huge_memory-set-memcg_data-before-a-split-page-leaves-the-folio-fix.patch
This patch was dropped because it was folded into mm-huge_memory-set-memcg_data-before-a-split-page-leaves-the-folio.patch
------------------------------------------------------
From: Andrew Morton <akpm@linux-foundation.org>
Subject: mm/huge_memory: explain memcg_data ordering during a folio split
Date: Mon, 30 Nov 2026 21:14:59 -0800
update comment, per Zi
Link: https://lore.kernel.org/r/DMMKKOIGA9UJ.353PCUUMFLCCJ@nvidia.com
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Daejun Park <daejun7.park@samsung.com>
Cc: Zi Yan <ziy@nvidia.com>
Cc: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: Barry Song <baohua@kernel.org>
Cc: Brendan Jackman <brendan.jackman@linux.dev>
Cc: David Hildenbrand <david@kernel.org>
Cc: Dev Jain <dev.jain@arm.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Kiryl Shutsemau <kas@kernel.org>
Cc: Lance Yang <lance.yang@linux.dev>
Cc: Liam R. Howlett <liam@infradead.org>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Nico Pache <nico.pache@linux.dev>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Cc: Shakeel Butt <shakeel.butt@linux.dev>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Tao Yi <escape@deepseek.com>
Cc: Usama Arif <usama.arif@linux.dev>
Cc: Vlastimil Babka <vbabka@kernel.org>
mm/huge_memory.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
--- a/mm/huge_memory.c~mm-huge_memory-set-memcg_data-before-a-split-page-leaves-the-folio-fix
+++ a/mm/huge_memory.c
@@ -3860,9 +3860,10 @@ static void __split_folio_to_order(struc
#ifdef CONFIG_MEMCG
/*
- * In the first tail page, memcg_data still holds
- * folio->_nr_pages. Lockless PFN walkers (page_cgroup_ino(),
- * page_owner) read memcg_data once the page is not a tail.
+ * clear_compound_head() makes new_folio visible as a folio to
+ * lockless, reference-free PFN walkers. In the first tail page,
+ * memcg_data overlays folio->_nr_pages. Set it before clearing
+ * compound_head so readers cannot mistake _nr_pages for an objcg.
*/
new_folio->memcg_data = folio->memcg_data;
#endif
_
Patches currently in -mm which might be from akpm@linux-foundation.org are
kselftest-mm-rename-read_pmd_pagesize-to-pmd_psize-fix.patch
selftests-mm-check-madv_cold-and-madv_pageout-on-partly-advised-thps-fix.patch
selftests-mm-retain-move-pmd-coverage-and-verify-huge-pmds.patch
lib-test_xarray-check-unused-spare-node-after-range-creation.patch
selftests-mm-check-that-fsync-reports-hard-poisoned-dirty-page-cache.patch
selftests-mm-memory-failure-truncate-poisoned-fuse-page-cache-before-teardown.patch
selftests-mm-memory-failure-skip-poisoned-dirty-page-cache-on-nilfs2.patch
selftest-mm-memory-failure-keep-page-cache-files-linked-until-cleanup.patch
selftest-mm-memory-failure-keep-page-cache-files-linked-until-cleanup-fix.patch
selftests-mm-memory-failure-skip-hard-dirty-page-cache-test-on-cephfs.patch
selftests-mm-memory-failure-close-dirty-page-cache-files-before-unlinking-them.patch
selftests-mm-memory-failure-extend-page-cache-test-files-with-pwrite.patch
selftests-mm-memory-failure-write-the-whole-page-cache-test-file-for-omfs.patch
selftests-mm-memory-failure-accept-eio-from-close-after-poisoning-dirty-data.patch
mm-huge_memory-set-memcg_data-before-a-split-page-leaves-the-folio.patch
xarray-fix-index-jumping-backwards-in-xas_find_marked-fix.patch
alloc_tag-introduce-ioctls-to-toggle-allocation-tracepoints-fix-fix.patch
alloc_tag-introduce-ioctls-to-toggle-allocation-tracepoints-fix.patch
mm-vmscan-scope-freeze-writeback-skip-to-the-reclaim-target.patch
mm-vmscan-scope-freeze-writeback-skip-to-the-reclaim-target-fix.patch
mm-hmm-refuse-secretmem-vmas-in-hmm_range_fault-fix.patch
ipc-msg-clamp-negative-msg_info-usage-counts.patch
squashfs-fix-leaked-page-locks-when-page-actor-allocation-fails-fix.patch
ocfs2-skip-network-flush-when-no-domain-handlers-are-registered.patch
selftests-ptrace-check-that-ptrace_set_syscall_info-rejects-invalid-error-values-fix.patch
lib-atomic64-separate-hashed-locks-by-smp-cache-line.patch
nvdimm-btt-separate-map-locks-by-smp-cache-line.patch
percpu_ref-replace-the-global-switch-lock-with-hashed-locks-fix.patch
afs-do-not-put-error-pointer-after-address-lookup-failure.patch
drivers-media-v4l2-core-v4l2-vp9c-reduce-inlining.patch
next prev parent reply other threads:[~2026-12-04 0:10 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-04 9:59 [PATCH 0/2] mm: fix memcg_data reads during a THP split Daejun Park via B4 Relay
2026-11-04 9:59 ` Daejun Park
2026-11-04 9:59 ` [PATCH 1/2] mm/huge_memory: set memcg_data before a split page leaves the folio Daejun Park via B4 Relay
2026-11-04 9:59 ` Daejun Park
2026-11-04 16:33 ` Zi Yan
2026-11-05 1:06 ` Daejun Park
2026-12-01 5:24 ` Andrew Morton
2026-12-01 5:25 ` + mm-huge_memory-set-memcg_data-before-a-split-page-leaves-the-folio-fix.patch added to mm-new branch Andrew Morton
2026-12-01 15:07 ` Zi Yan
2026-12-04 0:10 ` Andrew Morton [this message]
2026-12-01 5:25 ` + mm-huge_memory-set-memcg_data-before-a-split-page-leaves-the-folio.patch " Andrew Morton
2026-12-01 10:38 ` David Hildenbrand (Arm)
2026-12-01 18:03 ` [PATCH 1/2] mm/huge_memory: set memcg_data before a split page leaves the folio David Hildenbrand (Arm)
2026-11-04 9:59 ` [PATCH 2/2] mm/page_owner: also check PageTail before reading memcg_data Daejun Park via B4 Relay
2026-11-04 9:59 ` Daejun Park
2026-11-04 16:38 ` Zi Yan
2026-12-01 5:25 ` + mm-page_owner-also-check-pagetail-before-reading-memcg_data.patch added to mm-new branch Andrew Morton
2026-11-06 8:57 ` [PATCH 0/2] mm: fix memcg_data reads during a THP split Tao Yi
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=20261204001009.D55E81F000CE@smtp.kernel.org \
--to=akpm@linux-foundation.org \
--cc=baohua@kernel.org \
--cc=baolin.wang@linux.alibaba.com \
--cc=brendan.jackman@linux.dev \
--cc=daejun7.park@samsung.com \
--cc=david@kernel.org \
--cc=dev.jain@arm.com \
--cc=escape@deepseek.com \
--cc=hannes@cmpxchg.org \
--cc=kas@kernel.org \
--cc=lance.yang@linux.dev \
--cc=liam@infradead.org \
--cc=mhocko@kernel.org \
--cc=mm-commits@vger.kernel.org \
--cc=muchun.song@linux.dev \
--cc=nico.pache@linux.dev \
--cc=roman.gushchin@linux.dev \
--cc=ryan.roberts@arm.com \
--cc=shakeel.butt@linux.dev \
--cc=surenb@google.com \
--cc=usama.arif@linux.dev \
--cc=vbabka@kernel.org \
--cc=willy@infradead.org \
--cc=ziy@nvidia.com \
/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.