io_uring: fix async accept on O_NONBLOCK sockets
Do not set REQ_F_NOWAIT if the socket is non blocking. When enabled this causes the accept to immediately post a CQE with EAGAIN, which means you cannot perform an accept SQE on a NONBLOCK socket asynchronously. By removing the flag if there is no pending accept then poll is armed as usual and when a connection comes in the CQE is posted. Signed-off-by:Dylan Yudaken <dylany@fb.com> Link: https://lore.kernel.org/r/20220324143435.2875844-1-dylany@fb.com Signed-off-by:
Jens Axboe <axboe@kernel.dk>
Loading
-
mentioned in commit bb135266
-
mentioned in commit 63708e4b
-
mentioned in commit b6cedba2
-
mentioned in commit 755444f9
-
mentioned in commit 2e29b773
-
mentioned in commit 9e86774f
-
mentioned in commit 73d5148f
-
mentioned in commit 163d6702
-
mentioned in commit c7d73a24
-
mentioned in commit 430d4109
-
mentioned in commit 1b735b5e
-
mentioned in commit 16f34e15
-
mentioned in commit 70ee1e23
-
mentioned in commit 2fe167a3
-
mentioned in commit 8965ce06
-
mentioned in commit 896c4dff
-
mentioned in commit 1939c103
-
mentioned in commit c62c62f9
-
mentioned in commit 6bc64556
-
mentioned in commit 982d3aed
-
mentioned in commit 39573435
-
mentioned in commit 481d99de
-
mentioned in commit 489777e5
-
mentioned in commit c72cbb22
Please sign in to comment