futex: Clarify FUTEX2 flags
authorPeter Zijlstra <peterz@infradead.org>
Mon, 7 Aug 2023 12:18:44 +0000 (14:18 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 11 Sep 2023 15:41:31 +0000 (09:41 -0600)
commitcb9fd5e9e045a615610d487a646499535b1ebdf0
treeb707cdd1e3df775ff326b86650145c8704fe1719
parent434666c1ec921dead4bc3e630b531c418ca3ffbe
futex: Clarify FUTEX2 flags

sys_futex_waitv() is part of the futex2 series (the first and only so
far) of syscalls and has a flags field per futex (as opposed to flags
being encoded in the futex op).

This new flags field has a new namespace, which unfortunately isn't
super explicit. Notably it currently takes FUTEX_32 and
FUTEX_PRIVATE_FLAG.

Introduce the FUTEX2 namespace to clarify this

Signed-off-by: "Peter Zijlstra (Intel)" <peterz@infradead.org>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: André Almeida <andrealmeid@igalia.com>
Reviewed-and-tested-by: Jens Axboe <axboe@kernel.dk>
Link: https://lore.kernel.org/r/20230807123322.814039156@infradead.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/uapi/linux/futex.h
kernel/futex/syscalls.c