mm-zswap-prevent-lruvec-release-in-zswap_folio_swapin.patch removed from -mm tree
The quilt patch titled
Subject: mm: zswap: prevent lruvec release in zswap_folio_swapin()
has been removed from the -mm tree. Its filename was
mm-zswap-prevent-lruvec-release-in-zswap_folio_swapin.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: Muchun Song <[email protected]>
Subject: mm: zswap: prevent lruvec release in zswap_folio_swapin()
Date: Thu, 5 Mar 2026 19:52:38 +0800
In the near future, a folio will no longer pin its corresponding memory cgroup. So an lruvec returned by folio_lruvec() could be released without the rcu read lock or a reference to its memory cgroup.
In the current patch, the rcu read lock is employed to safeguard against the release of the lruvec in zswap_folio_swapin().
This serves as a preparatory measure for the reparenting of the LRU pages.
---
mm/zswap.c | 2 ++ 1 file changed, 2 insertions(+)
mm/zswap.c renamed from mm/zswap.c~mm-zswap-prevent-lruvec-release-in-zswap_folio_swapin +2 -0
@@ -664,8 +664,10 @@ void zswap_folio_swapin(struct folio *fostruct lruvec *lruvec;if (folio) { +rcu_read_lock (); lruvec =folio_lruvec (folio);atomic_long_inc (&lruvec->zswap_lruvec_state.nr_disk_swapins); +rcu_read_unlock (); } }
_
Patches currently in -mm which might be from [email protected] are