Re: [GIT PULL] Introduce try_alloc_pages for 6.15
From: Sebastian Sewior
Date: Mon Mar 31 2025 - 03:14:32 EST
On 2025-03-30 14:49:25 [-0700], Alexei Starovoitov wrote:
> On Sun, Mar 30, 2025 at 1:56 PM Linus Torvalds
> <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
> > So maybe "nmisafe_local_lock_t" or something in that vein?
> >
> > Please fix this up, There aren't *that* many users of
> > "localtry_xyzzy", let's get this fixed before there are more of them.
>
> Ok. Agree with the reasoning that the name doesn't quite fit.
>
> nmisafe_local_lock_t name works for me,
> though nmisafe_local_lock_irqsave() is a bit verbose.
>
> Don't have better name suggestions at the moment.
>
> Sebastian, Vlastimil,
> what do you prefer ?
nmisafe_local_lock_t sounds okay assuming the "nmisafe" part does not
make it look like it can be used without the trylock part in NMI context.
But yeah, it sounds better than the previous one.
Sebastian