]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: handle connect -EINPROGRESS like -EAGAIN
authorJens Axboe <axboe@kernel.dk>
Tue, 3 Dec 2019 18:23:54 +0000 (11:23 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 3 Dec 2019 18:23:54 +0000 (11:23 -0700)
commitabe25e5e024a1e0c8666b66cddc150ea8492b9ee
tree02d8894b7e6d9e896fa767545f7abc958fae3c52
parent0c48fe9fe372dd5948879a50e746d91ce1d773c5
io_uring: handle connect -EINPROGRESS like -EAGAIN

Right now we return it to userspace, which means the application has
to poll for the socket to be writeable. Let's just treat it like
-EAGAIN and have io_uring handle it internally, this makes it much
easier to use.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c