Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Dylan Yudaken and committed by
Jens Axboe
046fcc83 600b665b

-2
-2
io_uring/net.c
··· 1493 1493 return -EAGAIN; 1494 1494 1495 1495 if (ret > 0 && io_net_retry(sock, kmsg->msg.msg_flags)) { 1496 - zc->len -= ret; 1497 - zc->buf += ret; 1498 1496 zc->done_io += ret; 1499 1497 return -EAGAIN; 1500 1498 }