Re: [PATCH] mm/mglru: fix cgroup OOM during MGLRU state switching

From: Andrew Morton

Date: Sat Feb 28 2026 - 15:02:08 EST


On Sun, 1 Mar 2026 00:10:08 +0800 Leno Hou <lenohou@xxxxxxxxx> wrote:

> When the Multi-Gen LRU (MGLRU) state is toggled dynamically, a race
> condition exists between the state switching and the memory reclaim
> path. This can lead to unexpected cgroup OOM kills, even when plenty of
> reclaimable memory is available.
>
> ...
>

Nice description, thanks. I'll queue this for testing while we await
comments.

>
> Reproduction script:
> ---

Please avoid using the ^---$ separator in changelogs - it means "end of
changelog text"!

> Signed-off-by: Leno Hou <lenohou@xxxxxxxxx>
>
> ---

Ditto.