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 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
-
mentioned in commit 51556245
-
mentioned in commit 51556245
Please sign in to comment