io_uring/net: add IORING_ACCEPT_DONTWAIT flag
authorJens Axboe <axboe@kernel.dk>
Tue, 7 May 2024 20:06:15 +0000 (14:06 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 9 May 2024 18:22:03 +0000 (12:22 -0600)
commit7dcc758cca432510f77b2fe1077be2314bc3785b
treebf8af33ed114eef8e8f75b1803d8ea0432bad5d5
parent340f634aa43d4172771a784da31e5d4c7c7d3126
io_uring/net: add IORING_ACCEPT_DONTWAIT flag

This allows the caller to perform a non-blocking attempt, similarly to
how recvmsg has MSG_DONTWAIT. If set, and we get -EAGAIN on a connection
attempt, propagate the result to userspace rather than arm poll and
wait for a retry.

Suggested-by: Norman Maurer <norman_maurer@apple.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/uapi/linux/io_uring.h
io_uring/net.c