]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
io_uring: simplify IORING_SETUP_DEFER_TASKRUN && !SQPOLL check
authorCaleb Sander Mateos <csander@purestorage.com>
Fri, 6 Feb 2026 21:58:04 +0000 (14:58 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 10 Feb 2026 03:12:36 +0000 (20:12 -0700)
commit7cb3a68376da0bc0afab8157223cb479c97de9ff
treee9e561e601e4db408c630c7222edb58dbf438903
parent4adc13ed7c281c16152a700e47b65d17de07321a
io_uring: simplify IORING_SETUP_DEFER_TASKRUN && !SQPOLL check

io_uring_sanitise_params() already rejects flags that include both
IORING_SETUP_SQPOLL and IORING_SETUP_DEFER_TASKRUN. So it's unnecessary
to check IORING_SETUP_SQPOLL in io_uring_create() when
IORING_SETUP_DEFER_TASKRUN has already been checked. Drop the
!(ctx->flags & IORING_SETUP_SQPOLL) check for the task_complete case.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c