v2
2026-09-10
hugetlb 预留计数修复 · v2
Ackerley Tng 修复 HugeTLB subpool 的 used_hpages 跟踪,解决未配置限制时 put_pages 错误恢复预留等问题。
原始补丁链接
子 Patch(4)
1/4
mm: hugetlb: Track used_hpages when getting/putting pages from subpool
From: Ackerley Tng ackerleytng@google.com HugeTLB subpools currently only track used_hpages when the user configures a size limit. This is buggy since when there are existing allocations from the
2/4
mm: hugetlb: Fix out_put_pages subpool reserve calculation
From: Ackerley Tng ackerleytng@google.com When reserving pages for a mapping fails during global accounting, the error path rolls back the adjustments made to the subpool. Currently, this rollback
3/4
mm: hugetlb: Fix subpool usage leak on allocation failure
[mm: hugetlb: Fix subpool usage leak on allocation failure] From: Ackerley Tng ackerleytng@google.com When folio allocation fails early (e.g. buddy allocation failure or cgroup charging failure) an
4/4
mm: hugetlb: Avoid re-allocating global reservations on region add failure
From: Ackerley Tng ackerleytng@google.com When reserving huge pages for a shared mapping, reservations are first requested from the subpool, and any remainder is accounted in global reservations. W