io_uring: fix async accept on O_NONBLOCK sockets
commit a73825ba upstream. 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> Signed-off-by:
Sasha Levin <sashal@kernel.org>
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 fb0cece7
-
mentioned in commit fb0cece7
-
mentioned in commit 16f34e15
-
mentioned in commit 70ee1e23
-
mentioned in commit 2fe167a3
-
mentioned in commit 8965ce06
-
mentioned in commit 896c4dff
-
mentioned in commit b28a5779
-
mentioned in commit b28a5779
Please sign in to comment