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>
Sun, 29 Dec 2019 16:05:20 +0000 (09:05 -0700)
commitc965a63df09140f9e4e86c35b602391e3257d8b3
tree95005d5995eaaeda5ec81cc9acf8fb4a92623bdc
parent43e633eb373f919485cc3d22ec9b117a4f93309e
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.

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