]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
futex: Remove support for IMMUTABLE
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 10 Jul 2025 11:00:09 +0000 (13:00 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 11 Jul 2025 14:02:01 +0000 (16:02 +0200)
commit760e6f7befbab9a84c54457a8ee45313b7b91ee5
treead88ab0a0fa24ef4dd7c411fdb2a04de4399d347
parentfb3c553da7fa9991f9b1436d91dbb78c7477c86a
futex: Remove support for IMMUTABLE

The FH_FLAG_IMMUTABLE flag was meant to avoid the reference counting on
the private hash and so to avoid the performance regression on big
machines.
With the switch to per-CPU counter this is no longer needed. That flag
was never useable on any released kernel.

Remove any support for IMMUTABLE while preserve the flags argument and
enforce it to be zero.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250710110011.384614-5-bigeasy@linutronix.de
include/uapi/linux/prctl.h
kernel/futex/core.c