Re: [PATCH] zsmalloc: Fix races between asynchronous zspage free and page migration

From: Minchan Kim
Date: Wed May 11 2022 - 19:12:10 EST


On Wed, May 11, 2022 at 01:43:22PM -0700, Andrew Morton wrote:
> On Wed, 11 May 2022 12:50:20 -0700 Sultan Alsawaf <sultan@xxxxxxxxxxxxxxx> wrote:
>
> > > Shouldn't the fix be Fixes: 77ff465799c6 ("zsmalloc: zs_page_migrate: skip
> > > unnecessary loops but not return -EBUSY if zspage is not inuse)?
> > > Because we didn't migrate ZS_EMPTY pages before.
> >
> > Hi,
> >
> > Yeah, 77ff465799c6 indeed seems like the commit that introduced the bug.
>
> I updated the changelog, thanks.

Thanhks, Andrew.

Feel free to include my

Acked-by: Minchan Kim <minchan@xxxxxxxxxx>