Skip to content

mm: zswap: make shrinking memcg-aware

Rafael Aquini requested to merge raquini/centos-stream-9:RHEL-40684 into main

JIRA: https://issues.redhat.com/browse/RHEL-40684

After the recent code rebase to upstream v6.4 a series of changes to zswap
led us to RHEL backport commit 1e52e0ec ("zswap: do not shrink if cgroup
may not zswap") which is at the heart of RHEL-40684 reported issue.

A simple revert of the aforementioned commit doesn't cut it, because it is
a follow-up fix for a previously defective condition, given the zswap code
was not capable of working well under cgroups.
This backport series brings in support for making zswap and cgroups to work
in tandem, therefore addressing RHEL-40684 in the proper manner.

Omitted-fix: 25cd241408a2 ("mm: zswap: fix data loss on SWP_SYNCHRONOUS_IO devices")

Fixes: 1e52e0ec ("zswap: do not shrink if cgroup may not zswap")
Signed-off-by: Rafael Aquini aquini@redhat.com

Edited by Rafael Aquini

Merge request reports