Re: [PATCH v1 09/14] futex: Add sys_futex_requeue()

From: Geert Uytterhoeven
Date: Tue Jul 25 2023 - 03:27:28 EST


On Fri, Jul 21, 2023 at 1:11 PM Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
> Finish of the 'simple' futex2 syscall group by adding
> sys_futex_requeue(). Unlike sys_futex_{wait,wake}() it's arguments are
> too numerous to fit into a regular syscall. As such, use struct
> futex_waitv to pass the 'source' and 'destination' futexes to the
> syscall.
>
> This syscall implements what was previously known as FUTEX_CMP_REQUEUE
> and uses {val, uaddr, flags} for source and {uaddr, flags} for
> destination.
>
> This design explicitly allows requeueing between different types of
> futex by having a different flags word per uaddr.
>
> Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>

> arch/m68k/kernel/syscalls/syscall.tbl | 1

Acked-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds