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: remove duplicated freelist init

Several lines below we already initialise the freelist, don't do it
twice.

Reviewed-by: David Wei <dw@davidwei.uk>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/71b07c4e00d1db65899d1ed8d603d961fe7d1c28.1745141261.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Pavel Begunkov and committed by
Jens Axboe
37d26edd be6bad57

-3
-3
io_uring/zcrx.c
··· 245 245 if (!area->freelist) 246 246 goto err; 247 247 248 - for (i = 0; i < nr_iovs; i++) 249 - area->freelist[i] = i; 250 - 251 248 area->user_refs = kvmalloc_array(nr_iovs, sizeof(area->user_refs[0]), 252 249 GFP_KERNEL | __GFP_ZERO); 253 250 if (!area->user_refs)