From: Pavel Begunkov Date: Tue, 16 Sep 2025 14:28:00 +0000 (+0100) Subject: io_uring/zcrx: don't adjust free cache space X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5a8b6e7c1d7b5863faaf392eafa089bd599a8973;p=thirdparty%2Fkernel%2Fstable.git 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 Signed-off-by: Jens Axboe --- diff --git a/io_uring/zcrx.c b/io_uring/zcrx.c index 630b19ebb47e6..a805f744c774d 100644 --- a/io_uring/zcrx.c +++ b/io_uring/zcrx.c @@ -759,7 +759,7 @@ static void io_zcrx_ring_refill(struct page_pool *pp, guard(spinlock_bh)(&ifq->rq_lock); entries = io_zcrx_rqring_entries(ifq); - entries = min_t(unsigned, entries, PP_ALLOC_CACHE_REFILL - pp->alloc.count); + entries = min_t(unsigned, entries, PP_ALLOC_CACHE_REFILL); if (unlikely(!entries)) return;