io_uring: provide means of removing buffers
authorJens Axboe <axboe@kernel.dk>
Mon, 2 Mar 2020 23:32:28 +0000 (16:32 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 4 Mar 2020 03:04:21 +0000 (20:04 -0700)
commit6312c03657a6bf71ccd7552ed4fc7c0c9e4fc771
tree333de82114ea36c6a79944ca6325781ee921bf38
parentebddd992ab8bfa30669d666e6bb9ac70dcff5103
io_uring: provide means of removing buffers

We have IORING_OP_PROVIDE_BUFFERS, but the only way to remove buffers
is to trigger IO on them. The usual case of shrinking a buffer pool
would be to just not replenish the buffers when IO completes, and
instead just free it. But it may be nice to have a way to manually
remove a number of buffers from a given group, and
IORING_OP_REMOVE_BUFFERS provides that functionality.

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