summaryrefslogtreecommitdiff
path: root/io_uring
diff options
context:
space:
mode:
authorDylan Yudaken <dyudaken@gmail.com>2026-02-15 23:15:23 +0000
committerJens Axboe <axboe@kernel.dk>2026-02-16 08:10:46 -0700
commit046fcc83ac1ba8747f0bcae13f5e433802735245 (patch)
tree4bffa9ebb38443440545974c5ee2e547cb0305b7 /io_uring
parent600b665b903733bd60334e86031b157cc823ee55 (diff)
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>
Diffstat (limited to 'io_uring')
-rw-r--r--io_uring/net.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/io_uring/net.c b/io_uring/net.c
index a6f3cbb7dfea..8576c6cb2236 100644
--- a/io_uring/net.c
+++ b/io_uring/net.c
@@ -1493,8 +1493,6 @@ int io_send_zc(struct io_kiocb *req, unsigned int issue_flags)
return -EAGAIN;
if (ret > 0 && io_net_retry(sock, kmsg->msg.msg_flags)) {
- zc->len -= ret;
- zc->buf += ret;
zc->done_io += ret;
return -EAGAIN;
}