Commit a73825b
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>1 parent 7ef66d1 commit a73825b
1 file changed
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5602 | 5602 | | |
5603 | 5603 | | |
5604 | 5604 | | |
5605 | | - | |
5606 | | - | |
5607 | | - | |
5608 | 5605 | | |
5609 | 5606 | | |
5610 | 5607 | | |
| |||
0 commit comments