io-uring.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHSET 0/2] Add support for IORING_CQE_F_SOCK_FULL
@ 2025-11-05 19:30 Jens Axboe
  2025-11-05 19:30 ` [PATCH 1/2] io_uring/poll: flag request with REQ_F_POLL_TRIGGERED if it went through poll Jens Axboe
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jens Axboe @ 2025-11-05 19:30 UTC (permalink / raw)
  To: io-uring

Hi,

It can be useful for userspace to know if a send request had to go
through poll to complete, as that generally means that the socket was
out of space. On the send side, this is pretty trivial to support - we
just need to check if the request needed to go through poll to complete.

This reuses the IORING_CQE_F_SOCK_NONEMPTY flag value, which is only
valid for recv operations. As IORING_CQE_F_SOCK_FULL only applies on
sends, there's no need for separate values for this flag.

Based on an earlier patchset, which utilized REQ_F_POLL_ARMED instead
and handled patch 1 a bit differently.

 include/linux/io_uring_types.h |  3 +++
 include/uapi/linux/io_uring.h  |  4 ++++
 io_uring/net.c                 | 19 +++++++++++++------
 io_uring/poll.c                |  1 +
 4 files changed, 21 insertions(+), 6 deletions(-)

-- 
Jens Axboe


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

end of thread, other threads:[~2025-11-06 23:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-05 19:30 [PATCHSET 0/2] Add support for IORING_CQE_F_SOCK_FULL Jens Axboe
2025-11-05 19:30 ` [PATCH 1/2] io_uring/poll: flag request with REQ_F_POLL_TRIGGERED if it went through poll Jens Axboe
2025-11-05 19:30 ` [PATCH 2/2] io_uring/net: add IORING_CQE_F_SOCK_FULL if a send needed to poll arm Jens Axboe
2025-11-06 12:19 ` [PATCHSET 0/2] Add support for IORING_CQE_F_SOCK_FULL Pavel Begunkov
2025-11-06 23:24   ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).