]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
io_uring/futex: use GFP_KERNEL_ACCOUNT for futex data allocation
authorJens Axboe <axboe@kernel.dk>
Sun, 25 Jan 2026 17:07:09 +0000 (10:07 -0700)
committerJens Axboe <axboe@kernel.dk>
Sun, 25 Jan 2026 17:07:09 +0000 (10:07 -0700)
Be a bit nicer and ensure it plays nice with memcg accounting.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/futex.c

index 11bfff5a80df3597167af2af878e30343610c58f..1dabcfd503b8a82586768833c70e1328999e79ca 100644 (file)
@@ -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;