]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
io_uring: delay sqarray static branch disablement
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 15 Feb 2026 22:06:52 +0000 (22:06 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 15 Feb 2026 22:12:54 +0000 (15:12 -0700)
commit56112578c71213a10c995a56835bddb5e9ab1ed0
treeacde906d76dc718862e9bd78e8275fe0823eb876
parent6b34f8edf8b807b7f87901623aa52dfa1b29ef93
io_uring: delay sqarray static branch disablement

io_key_has_sqarray static branch can be easily switched on/off by the
user every time patching the kernel. That can be very disruptive as it
might require heavy synchronisation across all CPUs. Use deferred static
keys, which can rate-limit it by deferring, batching and potentially
effectively eliminating dec+inc pairs.

Fixes: 9b296c625ac1d ("io_uring: static_key for !IORING_SETUP_NO_SQARRAY")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c