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)
commite697deed834de15d2322d0619d51893022c90ea2
tree686a3c4003efa9d74e3f7658c5b3b3bebf854dbd
parent405a5d2b2762f2a9813efdee93274d4e7bf607a1
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