diff options
author | 2022-03-24 07:34:35 -0700 | |
---|---|---|
committer | 2022-03-24 16:10:29 -0600 | |
commit | a73825ba70c93e1eb39a845bb3d9885a787f8ffe (patch) | |
tree | 983509d071b6ce33493327fe3cfc5236911536fc /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | io_uring: remove IORING_CQE_F_MSG (diff) | |
download | wireguard-linux-a73825ba70c93e1eb39a845bb3d9885a787f8ffe.tar.xz wireguard-linux-a73825ba70c93e1eb39a845bb3d9885a787f8ffe.zip |
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>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions