Thread (6 messages) 6 messages, 2 authors, 2021-08-23
STALE1797d

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

From: Hao Xu <hidden>
Date: 2021-08-23 03:25:22
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 0fb75aa72b69..44b1b2b58e6a 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -6639,7 +6639,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