diff options
author | Jens Axboe <axboe@kernel.dk> | 2019-12-04 18:34:03 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-12-04 18:34:03 +0100 |
commit | 901e59bba9ddad4bc6994ecb8598ea60a993da4c (patch) | |
tree | a6f4b85725762a9dbc3cb39ce100c22979c8f159 /fs/io_uring.c | |
parent | null_blk: remove unused variable warning on !CONFIG_BLK_DEV_ZONED (diff) | |
download | linux-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.c | 3 |
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; |