v2
2026-11-11
修复swap回写簇表竞态 · v2
修复 swapcache 无匿名映射时的写出,并在持有分配器锁后发布 cluster 表、跳过无表 cluster 迁移。
原始补丁链接
子 Patch(3)
1/3
mm: vmscan: allow writeout of swapcache folios without anon mappings
Unfaulted zswap readahead folios can be dirty and in swapcache without an anonymous mapping. pageout() rejects them before swap_writeout(), so reclaim cannot write them out while their swap entries re
2/3
mm/swap: publish cluster tables after reacquiring allocator locks
Under memory pressure, swap_cluster_populate() can publish a table while its locks are dropped for a sleeping allocation. A cached allocator can consume and free that table before the populating alloc
3/3
mm/swap: skip relocation of tableless clusters
A stale reclaimer can reach relocate_cluster() after another allocator re-isolates an emptied cluster and drops its locks to populate the table. The cluster has zero count, CLUSTER_FLAG_NONE and no ta