Re: [RFC PATCH] mm/vmalloc: fix vmalloc which may return null if called with __GFP_NOFAIL

Christoph Hellwig
2024-05-09T04:52:40Z

On Thu, May 09, 2024 at 02:20:03PM +1200, Barry Song wrote:
> reverting the fix intended to address the OOM-killer issue in commit
> dd544141b9eb.
> Should we indeed permit the NOFAIL flag for large kvmalloc allocations?

What is large? When you don't allow actually use cases people will
just reimplement it poorly. E.g. we'd probably have to add back the
XFS kmem_ wrappers.