Commit 6e0d71c2 authored by Jens Axboe's avatar Jens Axboe
Browse files

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: default avatarJens Axboe <axboe@kernel.dk>
parent 81609589
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;