summaryrefslogtreecommitdiffstats
path: root/fs/io_uring.c
diff options
context:
space:
mode:
authorHao Xu <haoxu@linux.alibaba.com>2021-08-27 11:46:08 +0200
committerJens Axboe <axboe@kernel.dk>2021-08-27 15:27:24 +0200
commit14afdd6ee3a0db7bcae887d1951ed21c4d1539cd (patch)
treee253d4d3baba044540b2ef11a964a34b385fba3f /fs/io_uring.c
parentio_uring: don't free request to slab (diff)
downloadlinux-14afdd6ee3a0db7bcae887d1951ed21c4d1539cd.tar.xz
linux-14afdd6ee3a0db7bcae887d1951ed21c4d1539cd.zip
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/io_uring.c')
-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;
}