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>
Sat, 28 Dec 2019 23:06:24 +0000 (16:06 -0700)
commit315bcd5392b2d7b2024e2b6681ce721296a8b1f0
tree04b2379980b352c4a0c76cdb49ca74f267c18bf9
parent31975737af7cde4480f0c3fce72be1426209ef5d
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