summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2026-05-19 14:44:29 +0300
committerJens Axboe <axboe@kernel.dk>2026-05-26 19:42:01 +0300
commit98f07b0f74b65284ebe0d021505b461d4be6bf07 (patch)
treee744b0f340cc187eafdcfa121b5ec5604d23bfd6
parente57b44039bc54bbdf3d1511021458356858a4a12 (diff)
downloadlinux-98f07b0f74b65284ebe0d021505b461d4be6bf07.tar.xz
io_uring/zcrx: remove extra ifq close
By the time io_zcrx_ifq_free() is called the interface queue should already be closed, so io_close_queue() will be a no-op. Remove the call and add a couple of warnings. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://patch.msgid.link/be6c4a283a5bab5440e22fbccafe7b885acb7abc.1779189667.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--io_uring/zcrx.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/io_uring/zcrx.c b/io_uring/zcrx.c
index 4a1aea317287..d610e0f96844 100644
--- a/io_uring/zcrx.c
+++ b/io_uring/zcrx.c
@@ -574,7 +574,10 @@ static void io_close_queue(struct io_zcrx_ifq *ifq)
static void io_zcrx_ifq_free(struct io_zcrx_ifq *ifq)
{
- io_close_queue(ifq);
+ if (WARN_ON_ONCE(ifq->if_rxq != -1))
+ return;
+ if (WARN_ON_ONCE(ifq->netdev != NULL))
+ return;
if (ifq->area)
io_zcrx_free_area(ifq, ifq->area);