]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit87f80d623c6c93c721b2aaead8a45e848bc8ffbf
tree02d8894b7e6d9e896fa767545f7abc958fae3c52
parent6c6b3549142255c3fe4bab5560efdf8391c8d858
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