io_uring: add non-vectored read/write commands
authorJens Axboe <axboe@kernel.dk>
Sun, 22 Dec 2019 22:19:35 +0000 (15:19 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 15 Jan 2020 22:05:01 +0000 (15:05 -0700)
commit3c71e7797105b3e9e14e0650885b71098aabed0b
tree72476656d73152232c3e41274b0b191a6c15149d
parenta5fbe3f1e2463e5ea26bd66218c1031d42b29f63
io_uring: add non-vectored read/write commands

For uses cases that don't already naturally have an iovec, it's easier
(or more convenient) to just use a buffer address + length. This is
particular true if the use case is from languages that want to create
a memory safe abstraction on top of io_uring, and where introducing
the need for the iovec may impose an ownership issue. For those cases,
they currently need an indirection buffer, which means allocating data
just for this purpose.

Add basic read/write that don't require the iovec.

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