Skip to content
Commit a2741c58 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring/net: don't retry recvmsg() unnecessarily



If we're doing multishot receives, then we always end up doing two trips
through sock_recvmsg(). For protocols that sanely set msghdr->msg_inq,
then we don't need to waste time picking a new buffer and attempting a
new receive if there's nothing there.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 7d41bcb7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment