diff options
author | Jens Axboe <axboe@kernel.dk> | 2019-12-25 22:18:28 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-01-20 17:04:02 -0700 |
commit | c1ca757bd6f4632c510714631ddcc2d13030fe1e (patch) | |
tree | 7212cc1b906dd229aa82973923039eb929a56479 /include/uapi/linux/io_uring.h | |
parent | db08ca25253d56f1f76eb4b3fe32a7ac1fbab741 (diff) | |
download | linux-stable-c1ca757bd6f4632c510714631ddcc2d13030fe1e.tar.gz linux-stable-c1ca757bd6f4632c510714631ddcc2d13030fe1e.tar.bz2 linux-stable-c1ca757bd6f4632c510714631ddcc2d13030fe1e.zip |
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>
Diffstat (limited to 'include/uapi/linux/io_uring.h')
-rw-r--r-- | include/uapi/linux/io_uring.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/io_uring.h b/include/uapi/linux/io_uring.h index f86d1c776078..8ad3cece5440 100644 --- a/include/uapi/linux/io_uring.h +++ b/include/uapi/linux/io_uring.h @@ -88,6 +88,7 @@ enum { IORING_OP_READ, IORING_OP_WRITE, IORING_OP_FADVISE, + IORING_OP_MADVISE, /* this goes last, obviously */ IORING_OP_LAST, |