Re: [PATCH 2/4] mm: thp: introduce folio_split_queue_lock and its variants

From: David Hildenbrand

Date: Mon Sep 22 2025 - 04:20:34 EST


On 19.09.25 05:46, Qi Zheng wrote:
From: Muchun Song <songmuchun@xxxxxxxxxxxxx>

In future memcg removal, the binding between a folio and a memcg may
change, making the split lock within the memcg unstable when held.

A new approach is required to reparent the split queue to its parent. This
patch starts introducing a unified way to acquire the split lock for
future work.

It's a code-only refactoring with no functional changes.

Signed-off-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>
Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>
Signed-off-by: Qi Zheng <zhengqi.arch@xxxxxxxxxxxxx>
---

Looks sane, I assume the build issue is easily fixed

Acked-by: David Hildenbrand <david@xxxxxxxxxx>

--
Cheers

David / dhildenb