From: Jens Axboe <[email protected]>
To: [email protected]
Subject: [PATCHSET 0/2] Accept tweaks
Date: Wed, 8 May 2024 08:25:35 -0600 [thread overview]
Message-ID: <[email protected]> (raw)
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
next reply other threads:[~2024-05-08 14:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-08 14:25 Jens Axboe [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
[email protected] \
[email protected] \
[email protected] \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox