Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

io_uring/zcrx: account niov arrays to cgroup

net_iov / freelist / etc. arrays can be quite long, make sure they're
accounted.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Pavel Begunkov and committed by
Jens Axboe
31bf77dc 705d2ac7

+3 -3
+3 -3
io_uring/zcrx.c
··· 428 428 429 429 ret = -ENOMEM; 430 430 area->nia.niovs = kvmalloc_array(nr_iovs, sizeof(area->nia.niovs[0]), 431 - GFP_KERNEL | __GFP_ZERO); 431 + GFP_KERNEL_ACCOUNT | __GFP_ZERO); 432 432 if (!area->nia.niovs) 433 433 goto err; 434 434 435 435 area->freelist = kvmalloc_array(nr_iovs, sizeof(area->freelist[0]), 436 - GFP_KERNEL | __GFP_ZERO); 436 + GFP_KERNEL_ACCOUNT | __GFP_ZERO); 437 437 if (!area->freelist) 438 438 goto err; 439 439 440 440 area->user_refs = kvmalloc_array(nr_iovs, sizeof(area->user_refs[0]), 441 - GFP_KERNEL | __GFP_ZERO); 441 + GFP_KERNEL_ACCOUNT | __GFP_ZERO); 442 442 if (!area->user_refs) 443 443 goto err; 444 444