peterz@infradead.org 0f4b5f9722 futex: Add sys_futex_requeue()
Finish off the 'simple' futex2 syscall group by adding
sys_futex_requeue(). Unlike sys_futex_{wait,wake}() its 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@infradead.org>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20230921105248.511860556@noisy.programming.kicks-ass.net
2023-09-21 19:22:10 +02:00
..
2023-09-21 19:22:10 +02:00
2021-04-07 16:11:05 +02:00
2022-05-04 22:22:59 +02:00
2022-03-01 10:07:22 +01:00
2018-10-31 08:54:16 -07:00
2022-02-23 13:08:30 +01:00
2022-03-01 10:07:22 +01:00
2022-03-01 10:07:22 +01:00
2021-02-15 12:23:54 +01:00
2022-02-22 09:35:49 +01:00
2022-05-19 19:30:31 +02:00
2022-02-22 09:35:49 +01:00
2022-02-22 09:35:49 +01:00
2023-06-26 13:39:10 -07:00
2022-02-22 09:35:49 +01:00
2022-03-28 17:29:53 -07:00
2023-06-09 10:34:14 +02:00
2023-06-29 15:01:51 -07:00
2023-04-27 17:46:52 -07:00
2020-05-07 11:55:47 +02:00