Re: [PATCH] mm: kvmalloc: make kmalloc fast path real fast path

Matthew Wilcox
2025-06-04T18:42:26Z

On Wed, Apr 09, 2025 at 11:10:02AM +1000, Dave Chinner wrote:
> On Thu, Apr 03, 2025 at 09:51:44PM +0200, Michal Hocko wrote:
> > Add Andrew
> >
> > Also, Dave do you want me to redirect xlog_cil_kvmalloc to kvmalloc or
> > do you preffer to do that yourself?
>
> I'll do it when the kvmalloc patches evntually land and I can do
> back to back testing to determine if the new kvmalloc code behaves
> as expected...
>
> Please cc me on the new patches you send that modify the kvmalloc
> behaviour.

FWIW, this has now landed in Linus' tree as 46459154f997:

if (!(flags & __GFP_RETRY_MAYFAIL))
- flags |= __GFP_NORETRY;
+ flags &= ~__GFP_DIRECT_RECLAIM;