From: Jens Axboe Date: Wed, 4 Dec 2019 17:34:03 +0000 (-0700) Subject: io_uring: allow IO_SQE_* flags on IORING_OP_TIMEOUT X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=901e59bba9ddad4bc6994ecb8598ea60a993da4c;p=linux.git 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: 李通洲 Signed-off-by: Jens Axboe --- diff --git a/fs/io_uring.c b/fs/io_uring.c index 6c22a277904e9..00f119bdd8ff4 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -2703,9 +2703,6 @@ static int io_timeout(struct io_kiocb *req, const struct io_uring_sqe *sqe) int ret; ret = io_timeout_setup(req); - /* common setup allows flags (like links) set, we don't */ - if (!ret && sqe->flags) - ret = -EINVAL; if (ret) return ret;