]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: put provided buffer meta data under memcg accounting
authorJens Axboe <axboe@kernel.dk>
Fri, 24 Sep 2021 13:39:08 +0000 (07:39 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 24 Sep 2021 16:24:34 +0000 (10:24 -0600)
commitd823c7916354473877fe4d9ccfa4c1829906153f
treee99b8929c34822f11c50306ec2f271e7fde10418
parent03f1c8bf5535647c6adfa4e4484531a882618479
io_uring: put provided buffer meta data under memcg accounting

For each provided buffer, we allocate a struct io_buffer to hold the
data associated with it. As a large number of buffers can be provided,
account that data with memcg.

Fixes: 9c9208e1b758 ("io_uring: add IORING_OP_PROVIDE_BUFFERS")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c