Re: [PATCH v3 00/13] Add futex2 syscalls

From: Thomas Gleixner
Date: Wed May 05 2021 - 10:23:55 EST

On Wed, May 05 2021 at 14:31, Peter Zijlstra wrote:

> On Tue, Apr 27, 2021 at 08:12:35PM -0300, André Almeida wrote:
>> Hi,
>> This patch series introduces the futex2 syscalls.
> I still utterly detest that this adds a second hash-table for no
> descernable reason.
> The new syscall interface does not depend on that in any way, you
> previously implemented the multi-wait thing in the current futex code.
> Like I said last time; I'm okay with the new interface, but I don't see
> why you need to reimplement the insides, that's all pointless code
> duplication.

The real question is whether we really need to model all of this along
the existing futex functionality. I wouldn't mind a new infrastructure
which addresses all the other known issues of futexes and makes the
overall design less horrible than what we have now.

But that needs input from futex users (libraries and other horrible
wrappers) to figure out what they really need, hate, like or do not care

Without that we are bound to pile more crap on the existing pile of
horrors forever.