]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: check file O_NONBLOCK state for accept
authorJiufei Xue <jiufei.xue@linux.alibaba.com>
Wed, 10 Jun 2020 05:41:59 +0000 (13:41 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 11 Jun 2020 00:06:16 +0000 (18:06 -0600)
commit8d0d1f278c83a614d80cf89146577d26aed657d8
tree686a3c4003efa9d74e3f7658c5b3b3bebf854dbd
parent5bed9cd0b5251747a2236f0eb691eee89d42222b
io_uring: check file O_NONBLOCK state for accept

If the socket is O_NONBLOCK, we should complete the accept request
with -EAGAIN when data is not ready.

Signed-off-by: Jiufei Xue <jiufei.xue@linux.alibaba.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c