Skip to content

Commit 901e59b

Browse files
committed
io_uring: allow IO_SQE_* flags on IORING_OP_TIMEOUT
There's really no reason why we forbid things like link/drain etc on regular timeout commands. Enable the usual SQE flags on timeouts. Reported-by: 李通洲 <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent bca1c43 commit 901e59b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

fs/io_uring.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2703,9 +2703,6 @@ static int io_timeout(struct io_kiocb *req, const struct io_uring_sqe *sqe)
27032703
int ret;
27042704

27052705
ret = io_timeout_setup(req);
2706-
/* common setup allows flags (like links) set, we don't */
2707-
if (!ret && sqe->flags)
2708-
ret = -EINVAL;
27092706
if (ret)
27102707
return ret;
27112708

0 commit comments

Comments
 (0)