mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/3] mm: fix swapcache writeout and cluster table races
@ 2026-11-10 15:14 Nhat Pham
  2026-11-10 15:14 ` [PATCH v2 1/3] mm: vmscan: allow writeout of swapcache folios without anon mappings Nhat Pham
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Nhat Pham @ 2026-11-10 15:14 UTC (permalink / raw)
  To: linux-mm
  Cc: akpm, hannes, david, mhocko, qi.zheng, shakeel.butt, ljs, kasong,
	baohua, axelrasmussen, yuanchu, weixugc, baoquan.he, baolin.wang,
	willy, brauner, linux-kernel, chrisl, shikemeng, nphamcs,
	youngjun.park, ryncsn, sashiko-bot, stable

Reviews of vswap and v1 of this series found bugs in existing swap code.
Allow swapcache writeout without anon mappings, publish cluster tables
with the allocator locks held, and leave tableless clusters to the
allocator.

Changes in v2:
- Rebase onto the current mm-unstable tree.
- Use Suggested-by for Kairui in patch 2, as he requested.
- Add patch 3 to prevent stale tableless-cluster relocation, addressing
  both scenarios in Sashiko's review.

v1: https://lore.kernel.org/all/20261106160432.2552507-1-nphamcs@gmail.com/

Nhat Pham (3):
  mm: vmscan: allow writeout of swapcache folios without anon mappings
  mm/swap: publish cluster tables after reacquiring allocator locks
  mm/swap: skip relocation of tableless clusters

 mm/swapfile.c | 113 ++++++++++++++++++++++++++++++++++++--------------
 mm/vmscan.c   |   3 +-
 2 files changed, 83 insertions(+), 33 deletions(-)


base-commit: b024a51b0184b1efb6f55b11aaf7b15a490a6307
-- 
2.53.0-Meta


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-10 15:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-10 15:14 [PATCH v2 0/3] mm: fix swapcache writeout and cluster table races Nhat Pham
2026-11-10 15:14 ` [PATCH v2 1/3] mm: vmscan: allow writeout of swapcache folios without anon mappings Nhat Pham
2026-11-10 15:14 ` [PATCH v2 2/3] mm/swap: publish cluster tables after reacquiring allocator locks Nhat Pham
2026-11-10 15:14 ` [PATCH v2 3/3] mm/swap: skip relocation of tableless clusters Nhat Pham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®