Skip to content

Commit 6e0d71c

Browse files
committed
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 <axboe@kernel.dk>
1 parent 8160958 commit 6e0d71c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

io_uring/futex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ int io_futexv_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
186186
return -EINVAL;
187187

188188
ifd = kzalloc(struct_size_t(struct io_futexv_data, futexv, iof->futex_nr),
189-
GFP_KERNEL);
189+
GFP_KERNEL_ACCOUNT);
190190
if (!ifd)
191191
return -ENOMEM;
192192

0 commit comments

Comments
 (0)