From f629be214089d1017c233097d26179b43caba5e3 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 4 Dec 2019 10:34:03 -0700 Subject: [PATCH] io_uring: allow IO_SQE_* flags on IORING_OP_TIMEOUT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit to #26323578 commit 901e59bba9ddad4bc6994ecb8598ea60a993da4c upstream. 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 Signed-off-by: Joseph Qi Acked-by: Xiaoguang Wang --- fs/io_uring.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/io_uring.c b/fs/io_uring.c index a459c126e554..9bd53b4cde56 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -2699,9 +2699,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; -- GitLab