diff options
| author | Jens Axboe <[email protected]> | 2024-05-08 14:17:50 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2024-05-09 18:22:11 +0000 |
| commit | d3da8e98592693811c14c31f05380f378411fea1 (patch) | |
| tree | 885a341cad3532350cdab6c841a78c8d20425805 /net/unix/af_unix.c | |
| parent | io_uring/net: add IORING_ACCEPT_DONTWAIT flag (diff) | |
| download | kernel-d3da8e98592693811c14c31f05380f378411fea1.tar.gz kernel-d3da8e98592693811c14c31f05380f378411fea1.zip | |
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 <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
