public inbox for [email protected]
 help / color / mirror / Atom feed
* [PATCHSET 0/2] Accept tweaks
@ 2024-05-08 14:25 Jens Axboe
  2024-05-08 14:25 ` [PATCH 1/2] io_uring/net: add IORING_ACCEPT_DONTWAIT flag Jens Axboe
  2024-05-08 14:25 ` [PATCH 2/2] io_uring/net: add IORING_ACCEPT_POLL_FIRST flag Jens Axboe
  0 siblings, 2 replies; 3+ messages in thread
From: Jens Axboe @ 2024-05-08 14:25 UTC (permalink / raw)
  To: io-uring

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(-)

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-05-08 14:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-08 14:25 [PATCHSET 0/2] Accept tweaks Jens Axboe
2024-05-08 14:25 ` [PATCH 1/2] io_uring/net: add IORING_ACCEPT_DONTWAIT flag Jens Axboe
2024-05-08 14:25 ` [PATCH 2/2] io_uring/net: add IORING_ACCEPT_POLL_FIRST flag Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox