Re: [PATCH v4 4/4] mm: thp: reparent the split queue during memcg offline
From: Zi Yan
Date: Fri Oct 03 2025 - 12:58:44 EST
On 3 Oct 2025, at 12:53, Qi Zheng wrote:
> From: Qi Zheng <zhengqi.arch@xxxxxxxxxxxxx>
>
> Similar to list_lru, the split queue is relatively independent and does
> not need to be reparented along with objcg and LRU folios (holding
> objcg lock and lru lock). So let's apply the similar mechanism as list_lru
> to reparent the split queue separately when memcg is offine.
>
> This is also a preparation for reparenting LRU folios.
>
> Signed-off-by: Qi Zheng <zhengqi.arch@xxxxxxxxxxxxx>
> ---
> include/linux/huge_mm.h | 4 +++
> mm/huge_memory.c | 54 +++++++++++++++++++++++++++++++++++++++++
> mm/memcontrol.c | 1 +
> 3 files changed, 59 insertions(+)
>
Acked-by: Zi Yan <ziy@xxxxxxxxxx>
Best Regards,
Yan, Zi