From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org,david@kernel.org,akpm@linux-foundation.org
Subject: [folded-merged] mm-hugetlb-delay-anon-folio-rmap-removal-until-after-the-tlb-flush-fix.patch removed from -mm tree
Date: Thu, 03 Dec 2026 16:07:08 -0800 [thread overview]
Message-ID: <20261204000709.2CC2C1F000CE@smtp.kernel.org> (raw)
In-Reply-To: <20261116-fixes_hugetlb-v2-15-4dd9e94ea9ac@kernel.org>
The quilt patch titled
Subject: mm/hugetlb: use tlb_can_delay_rmap() when unmapping
has been removed from the -mm tree. Its filename was
mm-hugetlb-delay-anon-folio-rmap-removal-until-after-the-tlb-flush-fix.patch
This patch was dropped because it was folded into mm-hugetlb-delay-anon-folio-rmap-removal-until-after-the-tlb-flush.patch
------------------------------------------------------
From: Andrew Morton <akpm@linux-foundation.org>
Subject: mm/hugetlb: use tlb_can_delay_rmap() when unmapping
Date: Fri, 27 Nov 2026 13:46:55 -0800
The combination of "mm/hugetlb: delay anon folio rmap removal until after
the TLB flush" and "mm/huge_memory: flush dirty file PMDs before removing
rmap" fails to build: the latter removed tlb_delay_rmap().
The old helper checked whether rmap removal could be delayed and set
tlb->delayed_rmap. Its replacement, tlb_can_delay_rmap(), only checks
whether delaying is supported. The state change now occurs when
__tlb_remove_folio_pages_size() queues a page with delay_rmap set.
Use the new predicate here. This hugetlb path already passes delay_rmap
to __tlb_remove_page_size(), which calls that queueing helper. It
therefore still sets tlb->delayed_rmap before the TLB flush and delayed
rmap removal; no separate assignment is needed.
Link: https://lore.kernel.org/r/20261116-fixes_hugetlb-v2-15-4dd9e94ea9ac@kernel.org
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: David Hildenbrand (Arm) <david@kernel.org>
mm/hugetlb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/mm/hugetlb.c~mm-hugetlb-delay-anon-folio-rmap-removal-until-after-the-tlb-flush-fix
+++ a/mm/hugetlb.c
@@ -5559,7 +5559,7 @@ static void hugetlb_unmap_range(struct m
* entries are gone, unless the mm has no users left.
*/
if (folio_test_anon(folio) && !tlb->fullmm) {
- delay_rmap = tlb_delay_rmap(tlb);
+ delay_rmap = tlb_can_delay_rmap();
/*
* Without delay-rmap support, just flush before
* dropping the PTL. Except with MMU_GATHER_NO_GATHER
_
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
mm-hugetlb-delay-anon-folio-rmap-removal-until-after-the-tlb-flush.patch
mm-hugetlb-delay-anon-folio-rmap-removal-until-after-the-tlb-flush-fix-2.patch
mm-vmstat_kunit-add-synthetic-benchmark-for-mm-stats-fix.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-fix.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:07 UTC|newest]
Thread overview: 65+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-16 18:29 [PATCH v2 00/15] mm/hugetlb: various fixes David Hildenbrand (Arm)
2026-11-16 18:29 ` [PATCH v2 01/15] hugetlbfs: fix integer overflow in fallocate() David Hildenbrand (Arm)
2026-11-16 19:05 ` sashiko-bot
2026-11-23 6:25 ` [merged mm-hotfixes-stable] hugetlbfs-fix-integer-overflow-in-fallocate.patch removed from -mm tree Andrew Morton
2026-11-16 18:29 ` [PATCH v2 02/15] mm/hugetlb: compare against persistent count when freeing lowmem folios David Hildenbrand (Arm)
2026-11-16 19:05 ` sashiko-bot
2026-11-16 22:24 ` Rik van Riel
2026-11-17 10:11 ` Oscar Salvador (SUSE)
2026-11-16 18:29 ` [PATCH v2 03/15] mm/hugetlb: preserve reservations when shrinking on HIGHMEM David Hildenbrand (Arm)
2026-11-16 19:05 ` sashiko-bot
2026-11-16 22:43 ` Rik van Riel
2026-11-17 10:13 ` Oscar Salvador (SUSE)
2026-11-16 18:29 ` [PATCH v2 04/15] mm/hugetlb: account temporary folios separately David Hildenbrand (Arm)
2026-11-16 19:05 ` sashiko-bot
2026-11-17 8:14 ` Gregory Price (Meta)
2026-11-17 10:16 ` Oscar Salvador (SUSE)
2026-11-22 18:21 ` David Hildenbrand (Arm)
2026-11-22 18:44 ` David Hildenbrand (Arm)
2026-11-22 20:10 ` Andrew Morton
2026-11-22 20:09 ` + mm-hugetlb-account-temporary-folios-separately-fix.patch added to mm-unstable branch Andrew Morton
2026-12-04 0:05 ` [folded-merged] mm-hugetlb-account-temporary-folios-separately-fix.patch removed from -mm tree Andrew Morton
2026-11-16 18:29 ` [PATCH v2 05/15] mm/hugetlb: keep surplus folios when the pool shrinks David Hildenbrand (Arm)
2026-11-16 19:05 ` sashiko-bot
2026-11-18 9:01 ` Oscar Salvador (SUSE)
2026-11-16 18:29 ` [PATCH v2 06/15] mm/hugetlb: fix mremap() racing with page migration David Hildenbrand (Arm)
2026-11-16 19:05 ` sashiko-bot
2026-11-17 8:42 ` Gregory Price (Meta)
2026-11-18 9:02 ` Oscar Salvador (SUSE)
2026-11-23 6:25 ` [merged mm-hotfixes-stable] mm-hugetlb-fix-mremap-racing-with-page-migration.patch removed from -mm tree Andrew Morton
2026-11-16 18:29 ` [PATCH v2 07/15] hugetlbfs: fix unmapping folios from private VMAs David Hildenbrand (Arm)
2026-11-16 19:05 ` sashiko-bot
2026-11-17 8:31 ` Gregory Price (Meta)
2026-11-18 9:03 ` Oscar Salvador (SUSE)
2026-11-23 6:25 ` [merged mm-hotfixes-stable] hugetlbfs-fix-unmapping-folios-from-private-vmas.patch removed from -mm tree Andrew Morton
2026-11-16 18:29 ` [PATCH v2 08/15] mm/hugetlb: serialize page-cache allocations with truncation David Hildenbrand (Arm)
2026-11-16 19:05 ` sashiko-bot
2026-11-19 9:09 ` Oscar Salvador (SUSE)
2026-11-19 16:58 ` David Hildenbrand (Arm)
2026-11-24 9:37 ` + mm-hugetlb-serialize-page-cache-allocations-with-truncation-fix.patch added to mm-unstable branch Andrew Morton
2026-12-04 0:06 ` [folded-merged] mm-hugetlb-serialize-page-cache-allocations-with-truncation-fix.patch removed from -mm tree Andrew Morton
2026-11-16 18:29 ` [PATCH v2 09/15] mm/memfd: recheck the page cache before allocating a hugetlb folio David Hildenbrand (Arm)
2026-11-16 19:05 ` sashiko-bot
2026-11-17 8:34 ` Gregory Price (Meta)
2026-11-19 9:11 ` Oscar Salvador (SUSE)
2026-11-16 18:29 ` [PATCH v2 10/15] mm/hugetlb: count again if the reserve map shrank David Hildenbrand (Arm)
2026-11-16 19:05 ` sashiko-bot
2026-11-16 18:29 ` [PATCH v2 11/15] hugetlbfs: do not grow a sealed file in mmap() David Hildenbrand (Arm)
2026-11-16 19:05 ` sashiko-bot
2026-11-19 9:19 ` Oscar Salvador (SUSE)
2026-11-16 18:29 ` [PATCH v2 12/15] mm/hugetlb: keep surplus folios that are reserved David Hildenbrand (Arm)
2026-11-16 19:05 ` sashiko-bot
2026-11-19 9:21 ` Oscar Salvador (SUSE)
2026-11-16 18:29 ` [PATCH v2 13/15] mm/hugetlb: fix reservation leak on min_size= mounts David Hildenbrand (Arm)
2026-11-16 19:05 ` sashiko-bot
2026-11-19 9:25 ` Oscar Salvador (SUSE)
2026-11-16 18:29 ` [PATCH v2 14/15] mm/hugetlb: account restored reservations before freeing folios David Hildenbrand (Arm)
2026-11-16 19:05 ` sashiko-bot
2026-11-16 18:29 ` [PATCH v2 15/15] mm/hugetlb: delay anon folio rmap removal until after the TLB flush David Hildenbrand (Arm)
2026-11-16 19:05 ` sashiko-bot
2026-11-27 22:02 ` + mm-hugetlb-delay-anon-folio-rmap-removal-until-after-the-tlb-flush-fix.patch added to mm-unstable branch Andrew Morton
2026-11-27 22:40 ` + mm-hugetlb-delay-anon-folio-rmap-removal-until-after-the-tlb-flush-fix-2.patch " Andrew Morton
2026-11-29 8:37 ` David Hildenbrand (Arm)
2026-12-04 0:07 ` Andrew Morton [this message]
2026-12-04 0:07 ` [folded-merged] mm-hugetlb-delay-anon-folio-rmap-removal-until-after-the-tlb-flush-fix-2.patch removed from -mm tree Andrew Morton
2026-11-17 9:12 ` [PATCH v2 00/15] mm/hugetlb: various fixes David Hildenbrand (Arm)
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=20261204000709.2CC2C1F000CE@smtp.kernel.org \
--to=akpm@linux-foundation.org \
--cc=david@kernel.org \
--cc=mm-commits@vger.kernel.org \
/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.