io_uring: add IORING_OP_MADVISE
authorJens Axboe <axboe@kernel.dk>
Thu, 26 Dec 2019 05:18:28 +0000 (22:18 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 15 Jan 2020 22:05:02 +0000 (15:05 -0700)
commite06f240e694e62e645c4cb5604c949e0a00a5f6e
treeb9b5382dc26be0d3d86a329b1d92db7588167b73
parent894f825444fe5d1378a63501e78d059396a7c50e
io_uring: add IORING_OP_MADVISE

This adds support for doing madvise(2) through io_uring. We assume that
any operation can block, and hence punt everything async. This could be
improved, but hard to make bullet proof. The async punt ensures it's
safe.

Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
include/uapi/linux/io_uring.h