summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorHao Xu <haoxu@linux.alibaba.com>2021-08-27 12:46:08 +0300
committerJens Axboe <axboe@kernel.dk>2021-08-27 16:27:24 +0300
commit14afdd6ee3a0db7bcae887d1951ed21c4d1539cd (patch)
treee253d4d3baba044540b2ef11a964a34b385fba3f /fs
parent0c6e1d7fd5e7560fdc4bb3418c2c0f0d7a95bf76 (diff)
downloadlinux-14afdd6ee3a0db7bcae887d1951ed21c4d1539cd.tar.xz
io_uring: remove redundant req_set_fail()
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/io_uring.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c
index be3c3aea6398..48cc6328eb06 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -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;
}