projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c6e1d7
)
io_uring: remove redundant req_set_fail()
author
Hao Xu
<haoxu@linux.alibaba.com>
Fri, 27 Aug 2021 09:46:08 +0000
(17:46 +0800)
committer
Jens 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
patch
|
blob
|
history
diff --git
a/fs/io_uring.c
b/fs/io_uring.c
index
be3c3ae
..
48cc632
100644
(file)
--- 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;
}