Re: [PATCH 1/2] mm: zswap: Tie per-CPU acomp_ctx lifetime to the pool.

From: Yosry Ahmed

Date: Mon Mar 16 2026 - 11:11:13 EST


> diff --git a/mm/zswap.c b/mm/zswap.c
> index bdd24430f6ff..26de0468e33b 100644
> --- a/mm/zswap.c
> +++ b/mm/zswap.c
> @@ -242,6 +242,20 @@ static inline struct xarray *swap_zswap_tree(swp_entry_t swp)
> **********************************/
> static void __zswap_pool_empty(struct percpu_ref *ref);
>
> +static void acomp_ctx_dealloc(struct crypto_acomp_ctx *acomp_ctx)

Nit: If you respin, please call this acomp_ctx_free(). It's more
consistent with other naming in zswap.c