mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-01 03:54:02 +00:00
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: 李通洲 <carter.li@eoitek.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
bca1c43cb2
commit
901e59bba9
1 changed files with 0 additions and 3 deletions
|
@ -2703,9 +2703,6 @@ static int io_timeout(struct io_kiocb *req, const struct io_uring_sqe *sqe)
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = io_timeout_setup(req);
|
ret = io_timeout_setup(req);
|
||||||
/* common setup allows flags (like links) set, we don't */
|
|
||||||
if (!ret && sqe->flags)
|
|
||||||
ret = -EINVAL;
|
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue