From 6e0d71c288fdcf5866f5d0c6cde850a091cc3c55 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Sun, 25 Jan 2026 10:07:09 -0700 Subject: [PATCH] io_uring/futex: use GFP_KERNEL_ACCOUNT for futex data allocation Be a bit nicer and ensure it plays nice with memcg accounting. Signed-off-by: Jens Axboe --- io_uring/futex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io_uring/futex.c b/io_uring/futex.c index 11bfff5a80df3..1dabcfd503b8a 100644 --- a/io_uring/futex.c +++ b/io_uring/futex.c @@ -186,7 +186,7 @@ int io_futexv_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe) return -EINVAL; ifd = kzalloc(struct_size_t(struct io_futexv_data, futexv, iof->futex_nr), - GFP_KERNEL); + GFP_KERNEL_ACCOUNT); if (!ifd) return -ENOMEM; -- 2.47.3