projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bca1c43
)
io_uring: allow IO_SQE_* flags on IORING_OP_TIMEOUT
author
Jens Axboe
<axboe@kernel.dk>
Wed, 4 Dec 2019 17:34:03 +0000
(10:34 -0700)
committer
Jens Axboe
<axboe@kernel.dk>
Wed, 4 Dec 2019 17:34:03 +0000
(10:34 -0700)
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>
fs/io_uring.c
patch
|
blob
|
history
diff --git
a/fs/io_uring.c
b/fs/io_uring.c
index 6c22a277904e9a57071855e94d1494aee7c7c226..00f119bdd8ff4fdc7538806076796c6acea0af7d 100644
(file)
--- 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;