OSDN Git Service

io_uring: remove redundant req_set_fail()
authorHao Xu <haoxu@linux.alibaba.com>
Fri, 27 Aug 2021 09:46:08 +0000 (17:46 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 27 Aug 2021 13:27:24 +0000 (07:27 -0600)
req_set_fail() in io_submit_sqe() is redundant, remove it.

Signed-off-by: Hao Xu <haoxu@linux.alibaba.com>
Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/20210827094609.36052-2-haoxu@linux.alibaba.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c

index be3c3ae..48cc632 100644 (file)
@@ -6734,7 +6734,6 @@ static int io_submit_sqe(struct io_ring_ctx *ctx, struct io_kiocb *req,
 fail_req:
                if (link->head) {
                        /* fail even hard links since we don't submit */
-                       req_set_fail(link->head);
                        io_req_complete_failed(link->head, -ECANCELED);
                        link->head = NULL;
                }