]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbad805556e8bf0610c1d4656b30acdbbf4dc935a
tree7212cc1b906dd229aa82973923039eb929a56479
parent1fd6ac86e33bec9feb953053591d9286afbdd12a
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