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: disable ENTER_EXT_ARG_REG for IOPOLL

IOPOLL doesn't use the extended arguments, no need for it to support
IORING_ENTER_EXT_ARG_REG. Let's disable it for IOPOLL, if anything it
leaves more space for future extensions.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/a35ecd919dbdc17bd5b7932273e317832c531b45.1731689588.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Pavel Begunkov and committed by
Jens Axboe
3730aebb 68685fa2

+2 -6
+2 -6
io_uring/io_uring.c
··· 3214 3214 3215 3215 if (!(flags & IORING_ENTER_EXT_ARG)) 3216 3216 return 0; 3217 - 3218 - if (flags & IORING_ENTER_EXT_ARG_REG) { 3219 - if (argsz != sizeof(struct io_uring_reg_wait)) 3220 - return -EINVAL; 3221 - return PTR_ERR(io_get_ext_arg_reg(ctx, argp)); 3222 - } 3217 + if (flags & IORING_ENTER_EXT_ARG_REG) 3218 + return -EINVAL; 3223 3219 if (argsz != sizeof(arg)) 3224 3220 return -EINVAL; 3225 3221 if (copy_from_user(&arg, argp, sizeof(arg)))