mbox series

[PATCHSET,0/2] Accept tweaks

Message ID 20240508142725.91273-1-axboe@kernel.dk (mailing list archive)
Headers show
Series Accept tweaks | expand

Message

Jens Axboe May 8, 2024, 2:25 p.m. UTC
Hi,

Add support for a forced nonblock accept attempt, returning -EAGAIN
if nothing is there to accept rather than arm poll. This is similar to
similarly provided "-EAGAIN is final" for other opcodes.

Add support for doing polling first on accept. Again similar to support
we have for eg recv/recvmsg on relying on poll before initiating the
first accept request, avoiding expensive setup only to tear it down and
wait for a retry.

 include/uapi/linux/io_uring.h |  2 ++
 io_uring/net.c                | 22 ++++++++++++++++------
 2 files changed, 18 insertions(+), 6 deletions(-)