Re: [PATCH][v2] mm/hugetlb: early exit from hugetlb_pages_alloc_boot() when max_huge_pages=0

From: Andrew Morton
Date: Tue Aug 19 2025 - 18:59:21 EST


On Mon, 18 Aug 2025 09:46:59 +0200 David Hildenbrand <david@xxxxxxxxxx> wrote:

> >>> if (hugetlb_hstate_alloc_pages_specific_nodes(h))
> >>> return;
> >>
> >> Looks good. Could you add stable: ?
>
> Can you elaborate why you think this is stable material?
>

To prevent the

> [ 3.702280] HugeTLB: allocation took 0ms with hugepage_allocation_threads=32

message when hugetlb pages are disabled.

Yeah, I guess it isn't very important. I'll destabilize the patch.