[patch V4 10/12] futex: Convert to scoped user access

David Laight david.laight.linux at gmail.com
Fri Oct 24 08:14:50 AEDT 2025


On Thu, 23 Oct 2025 09:26:12 -1000
Linus Torvalds <torvalds at linux-foundation.org> wrote:

> On Thu, 23 Oct 2025 at 08:44, Thomas Gleixner <tglx at linutronix.de> wrote:
> >
> > But as you said out-of-line function call it occured to me that these
> > helpers might be just named get/put_user_inline(). Hmm?  
> 
> Yeah, with a comment that clearly says "you need to have actual
> performance numbers for why this needs to be inlined" for people to
> use it.

Avoiding an extra clac/stac pair for two accesses might be enough.
But for a single access it might be hard to justify.

(Even if 'return' instructions are horribly painful.
Although anyone chasing performance is probably using a local system
and just disables all that 'stuff'.)

> 
>            Linus



More information about the Linuxppc-dev mailing list