Re: [PATCH v12 00/21] futex: Add support task local hash maps, FUTEX2_NUMA and FUTEX2_MPOL

From: Sebastian Andrzej Siewior
Date: Mon May 05 2025 - 03:31:03 EST


On 2025-05-03 12:09:05 [+0200], Peter Zijlstra wrote:
> On Fri, May 02, 2025 at 09:48:07PM +0200, Peter Zijlstra wrote:
> > On Wed, Apr 16, 2025 at 06:31:42PM +0200, Sebastian Andrzej Siewior wrote:
> > > On 2025-04-16 18:29:00 [+0200], To linux-kernel@xxxxxxxxxxxxxxx wrote:
> > > > v11…v12: https://lore.kernel.org/all/20250407155742.968816-1-bigeasy@xxxxxxxxxxxxx
> >
> > I made a few changes (mostly the stuff I mailed about) and pushed out to
> > queue/locking/futex.
>
> And again, with hopefully less build errors included :-)

Okay. I guess the NUMA part where the nodeid is written back to userland
if 0 was supplied is not an issue. I was worried that if you fire
multiple threads which end up in the sys_futex_wait() at the same time,
waiting on the same addr on two nodes and the "current" nodeid is used
then the variable might be written back twice with two node ids. The
mpol interface should report always the same one.

Sebastian