diff options
| author | Pavel Begunkov <asml.silence@gmail.com> | 2025-09-16 15:27:58 +0100 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-09-16 12:37:20 -0600 |
| commit | 73fa880effc5644aaf746596acb1b1efa44606df (patch) | |
| tree | 78c0ab9487c32a1f6d06533ca4ceb46a657427bc | |
| parent | 20dda449c0b6297ed7c13a23a1207ed072655bff (diff) | |
io_uring/zcrx: reduce netmem scope in refill
Reduce the scope of a local var netmem in io_zcrx_ring_refill.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
| -rw-r--r-- | io_uring/zcrx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/zcrx.c b/io_uring/zcrx.c index 6a5b6f32edc3..5f99fc7b43ee 100644 --- a/io_uring/zcrx.c +++ b/io_uring/zcrx.c @@ -755,7 +755,6 @@ static void io_zcrx_ring_refill(struct page_pool *pp, { unsigned int mask = ifq->rq_entries - 1; unsigned int entries; - netmem_ref netmem; spin_lock_bh(&ifq->rq_lock); @@ -771,6 +770,7 @@ static void io_zcrx_ring_refill(struct page_pool *pp, struct io_zcrx_area *area; struct net_iov *niov; unsigned niov_idx, area_idx; + netmem_ref netmem; area_idx = rqe->off >> IORING_ZCRX_AREA_SHIFT; niov_idx = (rqe->off & ~IORING_ZCRX_AREA_MASK) >> ifq->niov_shift; |
