diff options
author | Jens Axboe | 2024-05-08 08:17:50 -0600 |
---|---|---|
committer | Jens Axboe | 2024-05-09 12:22:11 -0600 |
commit | d3da8e98592693811c14c31f05380f378411fea1 (patch) | |
tree | 885a341cad3532350cdab6c841a78c8d20425805 /lib/locking-selftest-wsem.h | |
parent | 7dcc758cca432510f77b2fe1077be2314bc3785b (diff) |
io_uring/net: add IORING_ACCEPT_POLL_FIRST flag
Similarly to how polling first is supported for receive, it makes sense
to provide the same for accept. An accept operation does a lot of
expensive setup, like allocating an fd, a socket/inode, etc. If no
connection request is already pending, this is wasted and will just be
cleaned up and freed, only to retry via the usual poll trigger.
Add IORING_ACCEPT_POLL_FIRST, which tells accept to only initiate the
accept request if poll says we have something to accept.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/locking-selftest-wsem.h')
0 files changed, 0 insertions, 0 deletions