Re: [PATCH bpf-next 1/2] mm, bpf: Introduce __GFP_TRYLOCK for opportunistic page allocation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Nov 16, 2024 at 01:41:41PM -0800, Alexei Starovoitov wrote:

> > The maze of ifdef-s beat me :(
> > It doesn't increment in PREEMPT_RCU.
> > Need an additional check then. hmm.
> 
> Like:
> if (preemptible() && !rcu_preempt_depth())
>   return alloc_pages_node_noprof(nid, GFP_NOWAIT | __GFP_ZERO, 0);
> 
> Not pretty, but should do.

Yeah, I suppose that should work. Thanks!





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux