[PATCHSET 0/2] Accept tweaks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Add support for a forced nonblock accept attempt, returning -EAGAIN
if nothing is there to accept rather than arm poll. This is similar to
similarly provided "-EAGAIN is final" for other opcodes.

Add support for doing polling first on accept. Again similar to support
we have for eg recv/recvmsg on relying on poll before initiating the
first accept request, avoiding expensive setup only to tear it down and
wait for a retry.

 include/uapi/linux/io_uring.h |  2 ++
 io_uring/net.c                | 22 ++++++++++++++++------
 2 files changed, 18 insertions(+), 6 deletions(-)

-- 
Jens Axboe





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux