On Tue, Feb 24, 2026 at 06:22:15AM -0800, Shakeel Butt wrote: > > Why bother? __GFP_RETRY_MAYFAIL has pretty lose semantics. Trying > > too hard to allocate PTEs is not breaking the overall concept. > > > > One thing __GFP_RETRY_MAYFAIL is very clear about is to not trigger the > oom-killer which is not the case for GFP_KERNEL. There are users who > explicitly > use __GFP_RETRY_MAYFAIL to avoid oom-killer.
That is a good point. Compared to other options documenting that it might would still seem like the best option after just not using __GFP_RETRY_MAYFAIL with vmalloc.
