io_uring/kbuf: account ring io_buffer_list memory
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 13 May 2025 17:26:46 +0000 (18:26 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 13 May 2025 20:45:47 +0000 (14:45 -0600)
commit475a8d30371604a6363da8e304a608a5959afc40
tree15fa74c3bbb9307a5a108465a79fd422271157fd
parent8fb7aee05591fd4d3dca1460448a59e95fa821c3
io_uring/kbuf: account ring io_buffer_list memory

Follow the non-ringed pbuf struct io_buffer_list allocations and account
it against the memcg. There is low chance of that being an actual
problem as ring provided buffer should either pin user memory or
allocate it, which is already accounted.

Cc: stable@vger.kernel.org # 6.1
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/3985218b50d341273cafff7234e1a7e6d0db9808.1747150490.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/kbuf.c