Re: [PATCH v8 00/15] futex: Add support task local hash maps.

From: Peter Zijlstra
Date: Fri Feb 21 2025 - 14:21:57 EST


On Fri, Feb 21, 2025 at 05:00:43PM +0100, Sebastian Andrzej Siewior wrote:
> On 2025-02-20 16:12:06 [+0100], Peter Zijlstra wrote:
> > I've split up the patch a little and stuck them here:
> >
> > https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/log/?h=futex/scope
>
> futex_wait_setup() has an unused task argument (current is always used).
>
> You solved the thing in lock_pi, I mentioned, by throwing in a
> no_free_ptr() in the middle. Well that works, I assumed we wanted to
> close the context somehow.

Yeah, it ain't pretty, but given the crazy code flow around there, I
couldn't come up with something sensible :/