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: 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>

authored by

Pavel Begunkov and committed by
Jens Axboe
73fa880e 20dda449

+1 -1
+1 -1
io_uring/zcrx.c
··· 755 755 { 756 756 unsigned int mask = ifq->rq_entries - 1; 757 757 unsigned int entries; 758 - netmem_ref netmem; 759 758 760 759 spin_lock_bh(&ifq->rq_lock); 761 760 ··· 770 771 struct io_zcrx_area *area; 771 772 struct net_iov *niov; 772 773 unsigned niov_idx, area_idx; 774 + netmem_ref netmem; 773 775 774 776 area_idx = rqe->off >> IORING_ZCRX_AREA_SHIFT; 775 777 niov_idx = (rqe->off & ~IORING_ZCRX_AREA_MASK) >> ifq->niov_shift;