Re: [PATCH v3 0/4] mm/zsmalloc: reduce lock contention in zs_free()
From: Wenchao Hao
Date: Tue Jun 09 2026 - 07:34:38 EST
On Sat, Jun 6, 2026 at 9:19 AM Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> On Fri, 5 Jun 2026 16:42:38 +0800 Wenchao Hao <haowenchao22@xxxxxxxxx> wrote:
>
> > This series reduces lock contention in zs_free(), which dominates the
> > unmap path under memory pressure on Android (LMK kills) and on x86
> > servers running zswap-heavy workloads.
>
> Thanks. It's late in the cycle so I'd prefer to merge this after 7.2-rc1, please.
>
> AI review said a few things:
> https://sashiko.dev/#/patchset/20260605084242.1549811-1-haowenchao22@xxxxxxxxx
Thanks Andrew. Both AI findings are valid and have been fixed in v4
(just sent):
- 1/4: on 64-bit systems without sparsemem (e.g. UML) obj had no spare
bits for class_idx; gate ZS_OBJ_CLASS_BITS on a spare-bit check so
such configs fall back to [PFN | obj_idx].
- 2/4: annotate the lockless handle access with READ_ONCE/WRITE_ONCE.
Wenchao