* [PATCH 1/1] io_uring/zcrx: fix pp destruction warnings
@ 2025-07-07 8:52 Pavel Begunkov
2025-07-07 12:54 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Pavel Begunkov @ 2025-07-07 8:52 UTC (permalink / raw)
To: io-uring; +Cc: asml.silence, Pedro Tammela
With multiple page pools and in some other cases we can have allocated
niovs on page pool destruction. Remove a misplaced warning checking that
all niovs are returned to zcrx on io_pp_zc_destroy(). It was reported
before but apparently got lost.
Reported-by: Pedro Tammela <pctammela@mojatatu.com>
Fixes: 34a3e60821ab9 ("io_uring/zcrx: implement zerocopy receive pp memory provider")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
---
io_uring/zcrx.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/io_uring/zcrx.c b/io_uring/zcrx.c
index ade4da9c4e31..67c518d22e0c 100644
--- a/io_uring/zcrx.c
+++ b/io_uring/zcrx.c
@@ -862,10 +862,7 @@ static int io_pp_zc_init(struct page_pool *pp)
static void io_pp_zc_destroy(struct page_pool *pp)
{
struct io_zcrx_ifq *ifq = io_pp_to_ifq(pp);
- struct io_zcrx_area *area = ifq->area;
- if (WARN_ON_ONCE(area->free_count != area->nia.num_niovs))
- return;
percpu_ref_put(&ifq->ctx->refs);
}
--
2.49.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] io_uring/zcrx: fix pp destruction warnings
2025-07-07 8:52 [PATCH 1/1] io_uring/zcrx: fix pp destruction warnings Pavel Begunkov
@ 2025-07-07 12:54 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2025-07-07 12:54 UTC (permalink / raw)
To: io-uring, Pavel Begunkov; +Cc: Pedro Tammela
On Mon, 07 Jul 2025 09:52:33 +0100, Pavel Begunkov wrote:
> With multiple page pools and in some other cases we can have allocated
> niovs on page pool destruction. Remove a misplaced warning checking that
> all niovs are returned to zcrx on io_pp_zc_destroy(). It was reported
> before but apparently got lost.
>
>
Applied, thanks!
[1/1] io_uring/zcrx: fix pp destruction warnings
commit: 203817de269539c062724d97dfa5af3cdf77a3ec
Best regards,
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-07-07 12:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-07 8:52 [PATCH 1/1] io_uring/zcrx: fix pp destruction warnings Pavel Begunkov
2025-07-07 12:54 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox