Skip to content

Commit 73fa880

Browse files
isilenceaxboe
authored andcommitted
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>
1 parent 20dda44 commit 73fa880

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

io_uring/zcrx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,6 @@ static void io_zcrx_ring_refill(struct page_pool *pp,
755755
{
756756
unsigned int mask = ifq->rq_entries - 1;
757757
unsigned int entries;
758-
netmem_ref netmem;
759758

760759
spin_lock_bh(&ifq->rq_lock);
761760

@@ -771,6 +770,7 @@ static void io_zcrx_ring_refill(struct page_pool *pp,
771770
struct io_zcrx_area *area;
772771
struct net_iov *niov;
773772
unsigned niov_idx, area_idx;
773+
netmem_ref netmem;
774774

775775
area_idx = rqe->off >> IORING_ZCRX_AREA_SHIFT;
776776
niov_idx = (rqe->off & ~IORING_ZCRX_AREA_MASK) >> ifq->niov_shift;

0 commit comments

Comments
 (0)