]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: add support for IORING_OP_CONNECT
authorJens Axboe <axboe@kernel.dk>
Sat, 23 Nov 2019 21:24:24 +0000 (14:24 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Nov 2019 02:56:11 +0000 (19:56 -0700)
commit2e01eb56a863d532c2bb82ce11ffd80641696c01
tree340a7e29ab51d3b7115d04a65841d01639a22b74
parent2a4f50249aa112d3ddf4c32dd366d705bbb98158
io_uring: add support for IORING_OP_CONNECT

This allows an application to call connect() in an async fashion. Like
other opcodes, we first try a non-blocking connect, then punt to async
context if we have to.

Note that we can still return -EINPROGRESS, and in that case the caller
should use IORING_OP_POLL_ADD to do an async wait for completion of the
connect request (just like for regular connect(2), except we can do it
async here too).

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