Skip to content

Commit 046fcc8

Browse files
DylanZAaxboe
authored andcommitted
io_uring: remove unneeded io_send_zc accounting
zc->len and zc->buf are not actually used once you get to the retry stage. The buffer remains in kmsg->msg.msg_iter, which is setup in io_send_setup. Note: it still seems needed in io_send due to io_send_select_buffer needing it (for the len parameter). Signed-off-by: Dylan Yudaken <dyudaken@gmail.com> Reviewed-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 600b665 commit 046fcc8

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

io_uring/net.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,8 +1493,6 @@ int io_send_zc(struct io_kiocb *req, unsigned int issue_flags)
14931493
return -EAGAIN;
14941494

14951495
if (ret > 0 && io_net_retry(sock, kmsg->msg.msg_flags)) {
1496-
zc->len -= ret;
1497-
zc->buf += ret;
14981496
zc->done_io += ret;
14991497
return -EAGAIN;
15001498
}

0 commit comments

Comments
 (0)