projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3a5d8e
)
io_uring: Fix getting file for timeout
author
Pavel Begunkov
<asml.silence@gmail.com>
Wed, 13 Nov 2019 21:59:19 +0000
(
00:59
+0300)
committer
Jens Axboe
<axboe@kernel.dk>
Wed, 13 Nov 2019 22:25:57 +0000
(15:25 -0700)
For timeout requests io_uring tries to grab a file with specified fd,
which is usually stdin/fd=0.
Update io_op_needs_file()
Signed-off-by: Pavel Begunkov <asml.silence@gmail.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 87beca4377f7b9f03822e0598b8e7f0b3d471e62..57ea54d5b0fbaa8c8027b655bf1993ea4ef78725 100644
(file)
--- a/
fs/io_uring.c
+++ b/
fs/io_uring.c
@@
-2298,6
+2298,7
@@
static bool io_op_needs_file(const struct io_uring_sqe *sqe)
switch (op) {
case IORING_OP_NOP:
case IORING_OP_POLL_REMOVE:
+ case IORING_OP_TIMEOUT:
return false;
default:
return true;