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: don't adjust free cache space

The cache should be empty when io_pp_zc_alloc_netmems() is called,
that's promised by page pool and further checked, so there is no need to
recalculate the available space 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
5a8b6e7c c95257f3

+1 -1
+1 -1
io_uring/zcrx.c
··· 759 759 guard(spinlock_bh)(&ifq->rq_lock); 760 760 761 761 entries = io_zcrx_rqring_entries(ifq); 762 - entries = min_t(unsigned, entries, PP_ALLOC_CACHE_REFILL - pp->alloc.count); 762 + entries = min_t(unsigned, entries, PP_ALLOC_CACHE_REFILL); 763 763 if (unlikely(!entries)) 764 764 return; 765 765