]> git.ipfire.org Git - thirdparty/linux.git/commit
io_uring/register: drop io_register_enable_rings() submitter_task check
authorCaleb Sander Mateos <csander@purestorage.com>
Mon, 5 Jan 2026 21:05:42 +0000 (14:05 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Jan 2026 18:21:38 +0000 (11:21 -0700)
commit130a82760718997806a618490f5b7ab06932bd9c
treee1bd04423b1f975be7aa961f81780d801f93c6c4
parentbcd4c95737d15fa1a85152b8862dec146b11c214
io_uring/register: drop io_register_enable_rings() submitter_task check

io_register_enable_rings() checks that the io_ring_ctx is
IORING_SETUP_R_DISABLED, which ensures submitter_task hasn't been
assigned by io_uring_create() or a previous io_register_enable_rings()
call. So drop the redundant check that submitter_task is NULL.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Joanne Koong <joannelkoong@gmail.com>
Reviewed-by: Gabriel Krisman Bertazi <krisman@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/register.c