aboutsummaryrefslogtreecommitdiff
path: root/io_uring/opdef.c
diff options
context:
space:
mode:
authorGravatar Jens Axboe <axboe@kernel.dk> 2024-03-05 09:34:21 -0700
committerGravatar Jens Axboe <axboe@kernel.dk> 2024-04-15 08:10:25 -0600
commit54cdcca05abde32acc3233950ddc79d8be25515f (patch)
tree88e804a46e02b37bef31f845f9a0564601d911a1 /io_uring/opdef.c
parentio_uring/alloc_cache: shrink default max entries from 512 to 128 (diff)
downloadlinux-54cdcca05abde32acc3233950ddc79d8be25515f.tar.gz
linux-54cdcca05abde32acc3233950ddc79d8be25515f.tar.bz2
linux-54cdcca05abde32acc3233950ddc79d8be25515f.zip
io_uring/net: switch io_send() and io_send_zc() to using io_async_msghdr
No functional changes in this patch, just in preparation for carrying more state then what is being done now, if necessary. While unifying some of this code, add a generic send setup prep handler that they can both use. This gets rid of some manual msghdr and sockaddr on the stack, and makes it look a bit more like the sendmsg/recvmsg variants. Going forward, more can get unified on top. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/opdef.c')
-rw-r--r--io_uring/opdef.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/io_uring/opdef.c b/io_uring/opdef.c
index 9c080aadc5a6..b0a990c6bbff 100644
--- a/io_uring/opdef.c
+++ b/io_uring/opdef.c
@@ -602,6 +602,7 @@ const struct io_cold_def io_cold_defs[] = {
.name = "SEND",
#if defined(CONFIG_NET)
.async_size = sizeof(struct io_async_msghdr),
+ .cleanup = io_sendmsg_recvmsg_cleanup,
.fail = io_sendrecv_fail,
.prep_async = io_send_prep_async,
#endif