diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2019-11-19 23:32:49 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-11-25 19:56:06 -0700 |
commit | f70193d6d8cad4cc614223fef349e6ea9d48c61f (patch) | |
tree | bcec4ac22beff1820e1dda927d15db45052ecf37 | |
parent | d3b35796b1e3f118017491d621f624e0de7ff9fb (diff) | |
download | linux-f70193d6d8cad4cc614223fef349e6ea9d48c61f.tar.bz2 |
io_uring: remove redundant check
Pass any IORING_OP_LINK_TIMEOUT request further, where it will
eventually fail in io_issue_sqe().
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | fs/io_uring.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index c1226f609e18..fd60939a8a59 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -3079,10 +3079,6 @@ err_req: INIT_LIST_HEAD(&req->link_list); *link = req; - } else if (READ_ONCE(s->sqe->opcode) == IORING_OP_LINK_TIMEOUT) { - /* Only valid as a linked SQE */ - ret = -EINVAL; - goto err_req; } else { io_queue_sqe(req); } |