summaryrefslogtreecommitdiffstats
path: root/fs/io_uring.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-12-04 18:34:03 +0100
committerJens Axboe <axboe@kernel.dk>2019-12-04 18:34:03 +0100
commit901e59bba9ddad4bc6994ecb8598ea60a993da4c (patch)
treea6f4b85725762a9dbc3cb39ce100c22979c8f159 /fs/io_uring.c
parentnull_blk: remove unused variable warning on !CONFIG_BLK_DEV_ZONED (diff)
downloadlinux-901e59bba9ddad4bc6994ecb8598ea60a993da4c.tar.xz
linux-901e59bba9ddad4bc6994ecb8598ea60a993da4c.zip
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>
Diffstat (limited to 'fs/io_uring.c')
-rw-r--r--fs/io_uring.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c
index 6c22a277904e..00f119bdd8ff 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;