[PATCH 0/2] zswap pool per-CPU acomp_ctx simplifications
From: Kanchana P. Sridhar
Date: Sat Mar 14 2026 - 01:21:28 EST
This patchset persists the zswap pool's per-CPU acomp_ctx resources to
last until the pool is destroyed. It then simplifies the per-CPU
acomp_ctx mutex locking in zswap_compress()/zswap_decompress().
Further, it consistently uses the same checks for valid
acomp_ctx->acomp/req in zswap procedures that allocate/deallocate
acomp_ctx members.
These are independent submissions of patches 23 and 24 from [1], to
facilitate merging. The Acks are preserved from [1].
[1]: https://patchwork.kernel.org/project/linux-mm/list/?series=1046677
Kanchana P. Sridhar (2):
mm: zswap: Tie per-CPU acomp_ctx lifetime to the pool.
mm: zswap: Consistently use IS_ERR_OR_NULL() to check acomp_ctx
resources.
mm/zswap.c | 163 ++++++++++++++++++++++-------------------------------
1 file changed, 66 insertions(+), 97 deletions(-)
--
2.39.5