io_uring/zctx: unify zerocopy issue variants

io_send_zc and io_sendmsg_zc started different but now the only real
difference between them is how registered buffers are imported and
which net helper we use. Avoid duplication and combine them into a
single function.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Pavel Begunkov
2026-02-16 11:45:55 +00:00
committed by Jens Axboe
parent 2f9965f5d5
commit 403fec55bf
3 changed files with 17 additions and 78 deletions

View File

@@ -437,7 +437,7 @@ const struct io_issue_def io_issue_defs[] = {
#if defined(CONFIG_NET)
.async_size = sizeof(struct io_async_msghdr),
.prep = io_send_zc_prep,
.issue = io_send_zc,
.issue = io_sendmsg_zc,
#else
.prep = io_eopnotsupp_prep,
#endif