Get the latest tech news
Linus Torvalds Improves Futex Code To Improve User-Space Accesses
In between managing all of the pull requests being submitted during this two week long merge window for the Linux 6.13 kernel, Linus Torvalds has merged some of his own code this cycle.
A profile showed that the offending __get_user() was the futex code, which really should be fixed up to not use that horrid legacy case. Rewrite futex_get_value_locked() to use the modern user acccess helpers, and inline it so that the compiler not only avoids the function call for a few instructions, but can do CSE on the address masking. This is just a minor improvement overall but Linux 6.13 as a whole is shaping up to be very exciting from new features to continuing with more performance optimizations.
Or read this on Phoronix