2024-02-02 22:25:36

by Nhat Pham

[permalink] [raw]
Subject: Re: [PATCH 1/6] mm/zswap: add more comments in shrink_memcg_cb()

On Thu, Feb 1, 2024 at 7:50 AM Chengming Zhou
<[email protected]> wrote:
>
> Add more comments in shrink_memcg_cb() to describe the deref dance
> which is implemented to fix race problem between lru writeback and
> swapoff, and the reason why we rotate the entry at the beginning.
>
> Also fix the stale comments in zswap_writeback_entry(), and add
> more comments to state that we only deref the tree after we get
> the swapcache reference.
>
> Suggested-by: Yosry Ahmed <[email protected]>
> Suggested-by: Johannes Weiner <[email protected]>
> Signed-off-by: Chengming Zhou <[email protected]>
> ---

Reviewed-by: Nhat Pham <[email protected]>