aio: support for IO polling
authorJens Axboe <axboe@kernel.dk>
Sat, 5 Jan 2019 05:07:31 +0000 (22:07 -0700)
committerJens Axboe <axboe@kernel.dk>
Sun, 6 Jan 2019 20:52:49 +0000 (13:52 -0700)
commitf5102277fedb47cb3c4386f3ebe46b2d9d94b7b9
tree75c01b8ae142dd18c845514c09cf670935a0fa18
parent6b8c388bb0f555502b8f4ecf173050374de78592
aio: support for IO polling

Add polled variants of PREAD/PREADV and PWRITE/PWRITEV. These act
like their non-polled counterparts, except we expect to poll for
completion of them. The polled IO is available through the new
io_uring interface, using sq/cq rings with aio.

To use polling, io_uring_setup() must be used with the
IOCTX_FLAG_IOPOLL flag being set. It is illegal to mix and match polled
and non-polled IO on an io_context.

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