Skip to content

Accept tweaks

Jens Axboe io-uring 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2io_uring/net: add IORING_ACCEPT_DONTWAIT flaginclude/uapi/linux/io_uring.h io_uring/net.c+10 -60 replies
2/2io_uring/net: add IORING_ACCEPT_POLL_FIRST flaginclude/uapi/linux/io_uring.h io_uring/net.c+9 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCHSET 0/2] Accept tweaks

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(-)
Signature · 1 line
Jens Axboe