forked from Minki/linux
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>
This commit is contained in:
parent
0c6e1d7fd5
commit
14afdd6ee3
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user