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

From: Andrew Morton
Date: Wed May 11 2022 - 16:43:32 EST


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.