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

Andrew Morton
2026-02-28T18:58:30Z

On Sun, 1 Mar 2026 00:10:08 +0800 Leno Hou <lenohou@gmail.com> 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@gmail.com>
>
> ---

Ditto.