Re: [PATCH v4 2/3] mm: gup: allow long-term pins of CMA-allocated HugeTLB folios

From: David Hildenbrand (Arm)

Date: Wed Nov 11 2026 - 02:46:09 EST


On 11/11/26 07:46, Qi Zheng wrote:
> From: Qi Zheng <zhengqi.arch@xxxxxxxxxxxxx>
>
> Long-term pinning treats explicitly CMA-allocated HugeTLB folios as
> unpinnable, causing unnecessary migration or pinning failures.
>
> These folios already own their CMA bitmap ranges, and memory blocks
> overlapping CMA areas cannot be offlined. Allow HugeTLB folios with
> HPG_cma to be pinned directly, including in ZONE_MOVABLE.

You should really describe here what this patch does (move stuff) and why, and
document why you decided to add more hugetlb hacks to core-MM that I absolutely
hate.

--
Cheers,

David