OSDN Git Service

io_uring: add IOSQE_BUFFER_SELECT support for IORING_OP_READV
authorJens Axboe <axboe@kernel.dk>
Thu, 27 Feb 2020 14:31:19 +0000 (07:31 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 10 Mar 2020 15:12:48 +0000 (09:12 -0600)
commit4d954c258a0c365a85a2d1b1cccf63aec38fca4c
tree565cd36dca9caf96839414f8c3cd784a7526d5b2
parentbcda7baaa3f15c7a95db3c024bb046d6e298f76b
io_uring: add IOSQE_BUFFER_SELECT support for IORING_OP_READV

This adds support for the vectored read. This is limited to supporting
just 1 segment in the iov, and is provided just for convenience for
applications that use IORING_OP_READV already.

The iov helpers will be used for IORING_OP_RECVMSG as well.

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