v3
2026-11-07
修复 hugetlb CMA 相关问题 · v3
修复 HugeTLB 的 CMA 保留、长期 pin、GFP 掩码传递及 gigantic surplus 分配的 cpuset 限制问题。
原始补丁链接
子 Patch(3)
1/3
x86: hugetlb: disable default CMA reservations on 32-bit kernel
From: Qi Zheng zhengqi.arch@bytedance.com A 32-bit x86 kernel can run on a 64-bit-capable CPU advertising GBPAGES. arch_hugetlb_cma_order() checks only this feature and returns a nonzero order, alt
2/3
mm: gup: allow long-term pins of CMA-allocated HugeTLB folios
From: Qi Zheng zhengqi.arch@bytedance.com Long-term pinning treats explicitly CMA-allocated HugeTLB folios as unpinnable, causing unnecessary migration or pinning failures. These folios already ow
3/3
mm: hugetlb: fix GFP mask propagation to CMA
From: Qi Zheng zhengqi.arch@bytedance.com cma_alloc_frozen_compound() uses GFP_KERNEL, allowing direct reclaim during the first MPOL_PREFERRED_MANY allocation attempt even though the caller clears