]> 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)
commit1df793db8cfa0e4cf6c8cede5f0cc733fe3ebcf2
tree02d8894b7e6d9e896fa767545f7abc958fae3c52
parent2c51ff05bbd001e256c0f2760b6018fa647032d5
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