Re: [PATCH] mm/mglru: fix memcg protection for global proactive reclaim
From: Andrew Morton
Date: Thu Jul 23 2026 - 19:58:18 EST
On Thu, 23 Jul 2026 21:05:59 +0800 Ridong <ridong.chen@xxxxxxxxx> wrote:
> memory.min/low is silently bypassed for MGLRU during global proactive
> reclaim (writing to the root memory.reclaim). It can be reproduced as
> follows:
>
> ...
>
> Factor the tree traversal out into update_memcg_protection() and call
> it from lru_gen_shrink_node() for the non-kswapd path, so the protection
> is computed before shrinking. kswapd keeps computing it in
> lru_gen_age_node(), which also needs it for the min_ttl OOM check.
>
> Fixes: e4dde56cd208 ("mm: multi-gen LRU: per-node lru_gen_folio lists")
Do we want cc:stable on this fix?
Sashiko said a couple of things - the memcg ref leak looks real:
https://sashiko.dev/#/patchset/20260723130559.2343690-1-ridong.chen@xxxxxxxxx