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/cmd: deduplicate uring_cmd_flags checks

io_uring_cmd_prep() currently has two checks for whether
IORING_URING_CMD_FIXED and IORING_URING_CMD_MULTISHOT are both set in
uring_cmd_flags. Remove the second check.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250821163308.977915-3-csander@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Caleb Sander Mateos and committed by
Jens Axboe
3484f530 620a50c9

-2
-2
io_uring/uring_cmd.c
··· 202 202 } 203 203 204 204 if (ioucmd->flags & IORING_URING_CMD_MULTISHOT) { 205 - if (ioucmd->flags & IORING_URING_CMD_FIXED) 206 - return -EINVAL; 207 205 if (!(req->flags & REQ_F_BUFFER_SELECT)) 208 206 return -EINVAL; 209 207 } else {