From 965269a516dbb65278f7b4a27cdea48d8035c8e9 Mon Sep 17 00:00:00 2001 From: Pavel Begunkov Date: Tue, 19 Nov 2019 23:32:49 +0300 Subject: [PATCH 1033/2944] io_uring: remove redundant check to #26323578 commit f70193d6d8cad4cc614223fef349e6ea9d48c61f upstream. Pass any IORING_OP_LINK_TIMEOUT request further, where it will eventually fail in io_issue_sqe(). Signed-off-by: Pavel Begunkov Signed-off-by: Jens Axboe Signed-off-by: Joseph Qi Acked-by: Xiaoguang Wang --- fs/io_uring.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/fs/io_uring.c b/fs/io_uring.c index 5320de1..d983cb4 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -3081,10 +3081,6 @@ static void io_submit_sqe(struct io_kiocb *req, struct io_submit_state *state, 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); } -- 1.8.3.1