]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
io_uring: account drain memory to cgroup
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 9 May 2025 11:12:47 +0000 (12:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:11:13 +0000 (11:11 +0100)
commitba789be63d9567e5ab5a168d49ccdfb6e0a5b72a
treea0adbfa6f0ae1519b67b2e669bec89cddf1efbc5
parent082b0ca9a79d7d0f3669fc69e22a4af9ff10b07a
io_uring: account drain memory to cgroup

commit f979c20547e72568e3c793bc92c7522bc3166246 upstream.

Account drain allocations against memcg. It's not a big problem as each
such allocation is paired with a request, which is accounted, but it's
nicer to follow the limits more closely.

Cc: stable@vger.kernel.org # 6.1
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/f8dfdbd755c41fd9c75d12b858af07dfba5bbb68.1746788718.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
io_uring/io_uring.c