diff options
| author | Pavel Begunkov <asml.silence@gmail.com> | 2025-09-16 15:27:46 +0100 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-09-16 12:37:20 -0600 |
| commit | d5e31db9a950f1edfa20a59e7105e9cc78135493 (patch) | |
| tree | 9e26e1455a8e9c1f48edf036ed1ceff6f054f8e3 /io_uring | |
| parent | bdc0d478a1632a72afa6d359d7fdd49dd08c0b25 (diff) | |
io_uring/zcrx: use page_pool_unref_and_test()
page_pool_unref_and_test() tries to better follow usuall refcount
semantics, use it instead of page_pool_unref_netmem().
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring')
| -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 a4a0560e8269..bd2fb3688432 100644 --- a/io_uring/zcrx.c +++ b/io_uring/zcrx.c @@ -787,7 +787,7 @@ static void io_zcrx_ring_refill(struct page_pool *pp, continue; netmem = net_iov_to_netmem(niov); - if (page_pool_unref_netmem(netmem, 1) != 0) + if (!page_pool_unref_and_test(netmem)) continue; if (unlikely(niov->pp != pp)) { |
