Skip to content

Commit 5a848b7

Browse files
isilenceaxboe
authored andcommitted
io_uring/net: fix zc send link failing
Failed requests should be marked with req_set_fail(), so links and cqe skipping work correctly, which is missing in io_sendzc(). Note, io_sendzc() return IOU_OK on failure, so the core code won't do the cleanup for us. Fixes: 06a5464 ("io_uring: wire send zc request type") Signed-off-by: Pavel Begunkov <[email protected]> Link: https://lore.kernel.org/r/e47d46fda9db30154ce66a549bb0d3380b780520.1661342812.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <[email protected]>
1 parent 2cacedc commit 5a848b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

io_uring/net.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,6 +1023,7 @@ int io_sendzc(struct io_kiocb *req, unsigned int issue_flags)
10231023
}
10241024
if (ret == -ERESTARTSYS)
10251025
ret = -EINTR;
1026+
req_set_fail(req);
10261027
} else if (zc->flags & IORING_RECVSEND_NOTIF_FLUSH) {
10271028
io_notif_slot_flush_submit(notif_slot, 0);
10281029
}

0 commit comments

Comments
 (0)