diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2025-04-20 12:31:15 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-04-21 14:11:40 +0300 |
commit | 37d26edd6bb4984849a71e21c6824c961fcd19db (patch) | |
tree | 67bf6a2870abc1fe1b6233deeb94d77ebfef7d21 | |
parent | be6bad57b217491733754ae8113eec94a90a2769 (diff) | |
download | linux-37d26edd6bb4984849a71e21c6824c961fcd19db.tar.xz |
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>
-rw-r--r-- | io_uring/zcrx.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/io_uring/zcrx.c b/io_uring/zcrx.c index fe86606b9f30..79f58c94494b 100644 --- a/io_uring/zcrx.c +++ b/io_uring/zcrx.c @@ -245,9 +245,6 @@ static int io_zcrx_create_area(struct io_zcrx_ifq *ifq, if (!area->freelist) goto err; - for (i = 0; i < nr_iovs; i++) - area->freelist[i] = i; - area->user_refs = kvmalloc_array(nr_iovs, sizeof(area->user_refs[0]), GFP_KERNEL | __GFP_ZERO); if (!area->user_refs) |