Thread (6 messages) 6 messages, 3 authors, 2021-08-27
STALE1797d LANDED

[PATCH 1/2] io_uring: remove redundant req_set_fail()

From: Hao Xu <hidden>
Date: 2021-08-27 09:46:57
Subsystem: filesystems (vfs and infrastructure), the rest · Maintainers: Alexander Viro, Christian Brauner, Linus Torvalds

req_set_fail() in io_submit_sqe() is redundant, remove it.

Signed-off-by: Hao Xu <redacted>
---
 fs/io_uring.c | 1 -
 1 file changed, 1 deletion(-)
diff --git a/fs/io_uring.c b/fs/io_uring.c
index d9534c72dc4b..3598319b1340 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -6631,7 +6631,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;
 		}
-- 
2.24.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help