]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/io_uring.c
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>
Tue, 21 Jan 2020 00:04:02 +0000 (17:04 -0700)
commitc1ca757bd6f4632c510714631ddcc2d13030fe1e
tree7212cc1b906dd229aa82973923039eb929a56479
parentdb08ca25253d56f1f76eb4b3fe32a7ac1fbab741
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