Skip to content

Allow MSG_WAITALL for send/sendmsg

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: support MSG_WAITALL for IORING_OP_SEND(MSG)fs/io_uring.c+29 -70 replies
2/2io_uring: allow re-poll if we made progressfs/io_uring.c+7 -30 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCHSET next 0/2] Allow MSG_WAITALL for send/sendmsg

Hi,

Just like we did for recv/recvmsg, allow MSG_WAITALL to mean that we want to wait for all the requested data instead of doing a partial completion.

Patch 2 ensures that we can sanely use apoll multiple times, as long as we're making progress on the IO. This is important to avoid punting to io-wq if we can avoid it. The gate on already having polled is lifted if we did transfer some data, which should avoid the initial worry of why that place was in check - repeatedly non-block retrying and getting -EAGAIN.

Signature · 1 line
Jens Axboe