aboutsummaryrefslogtreecommitdiff
path: root/io_uring/opdef.c
diff options
context:
space:
mode:
authorGravatar Jens Axboe <axboe@kernel.dk> 2024-03-18 20:37:22 -0600
committerGravatar Jens Axboe <axboe@kernel.dk> 2024-04-15 08:10:25 -0600
commite2ea5a7069133c01fe3dbda95d77af7f193a1a52 (patch)
treef1e7f1e67139d964b294035636befff980242675 /io_uring/opdef.c
parentio_uring/rw: add iovec recycling (diff)
downloadlinux-e2ea5a7069133c01fe3dbda95d77af7f193a1a52.tar.gz
linux-e2ea5a7069133c01fe3dbda95d77af7f193a1a52.tar.bz2
linux-e2ea5a7069133c01fe3dbda95d77af7f193a1a52.zip
io_uring/net: move connect to always using async data
While doing that, get rid of io_async_connect and just use the generic io_async_msghdr. Both of them have a struct sockaddr_storage in there, and while io_async_msghdr is bigger, if the same type can be used then the netmsg_cache can get reused for connect as well. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/opdef.c')
-rw-r--r--io_uring/opdef.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/io_uring/opdef.c b/io_uring/opdef.c
index fcae75a08f2c..1951107210d4 100644
--- a/io_uring/opdef.c
+++ b/io_uring/opdef.c
@@ -557,8 +557,7 @@ const struct io_cold_def io_cold_defs[] = {
[IORING_OP_CONNECT] = {
.name = "CONNECT",
#if defined(CONFIG_NET)
- .async_size = sizeof(struct io_async_connect),
- .prep_async = io_connect_prep_async,
+ .async_size = sizeof(struct io_async_msghdr),
#endif
},
[IORING_OP_FALLOCATE] = {