The patch titled Subject: zsmalloc-fix-races-between-modifications-of-fullness-and-isolated-v2 has been added to the -mm mm-hotfixes-unstable branch. Its filename is zsmalloc-fix-races-between-modifications-of-fullness-and-isolated-v2.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/zsmalloc-fix-races-between-modifications-of-fullness-and-isolated-v2.patch This patch will later appear in the mm-hotfixes-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Andrew Yang <andrew.yang@xxxxxxxxxxxx> Subject: zsmalloc-fix-races-between-modifications-of-fullness-and-isolated-v2 Date: Thu, 27 Jul 2023 14:29:07 +0800 move comment Link: https://lkml.kernel.org/r/20230727062910.6337-1-andrew.yang@xxxxxxxxxxxx Signed-off-by: Andrew Yang <andrew.yang@xxxxxxxxxxxx> Fixes: c4549b871102 ("zsmalloc: remove zspage isolation for migration") Cc: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx> Cc: Matthias Brugger <matthias.bgg@xxxxxxxxx> Cc: Minchan Kim <minchan@xxxxxxxxxx> Cc: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx> Cc: Sergey Senozhatsky <senozhatsky@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/zsmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/zsmalloc.c~zsmalloc-fix-races-between-modifications-of-fullness-and-isolated-v2 +++ a/mm/zsmalloc.c @@ -1877,11 +1877,11 @@ static int zs_page_migrate(struct page * kunmap_atomic(s_addr); replace_sub_page(class, zspage, newpage, page); + dec_zspage_isolation(zspage); /* * Since we complete the data copy and set up new zspage structure, * it's okay to release the pool's lock. */ - dec_zspage_isolation(zspage); spin_unlock(&pool->lock); migrate_write_unlock(zspage); _ Patches currently in -mm which might be from andrew.yang@xxxxxxxxxxxx are zsmalloc-fix-races-between-modifications-of-fullness-and-isolated.patch zsmalloc-fix-races-between-modifications-of-fullness-and-isolated-v2.patch fs-drop_caches-draining-pages-before-dropping-caches.patch