Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

io_uring/register: drop redundant submitter_task check

For IORING_SETUP_SINGLE_ISSUER io_ring_ctx's, io_register_resize_rings()
checks that the current task is the ctx's submitter_task. However, its
caller __io_uring_register() already checks this. Drop the redundant
check in io_register_resize_rings().

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Link: https://lore.kernel.org/r/20250902215108.1925105-1-csander@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Caleb Sander Mateos and committed by
Jens Axboe
8b9c9a2e 37500634

-4
-4
io_uring/register.c
··· 408 408 struct io_uring_params p; 409 409 int ret; 410 410 411 - /* for single issuer, must be owner resizing */ 412 - if (ctx->flags & IORING_SETUP_SINGLE_ISSUER && 413 - current != ctx->submitter_task) 414 - return -EEXIST; 415 411 /* limited to DEFER_TASKRUN for now */ 416 412 if (!(ctx->flags & IORING_SETUP_DEFER_TASKRUN)) 417 413 return -EINVAL;