net: avoid false positive warnings in __net_mp_close_rxq()
authorJakub Kicinski <kuba@kernel.org>
Thu, 3 Apr 2025 01:34:05 +0000 (18:34 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 4 Apr 2025 14:35:38 +0000 (07:35 -0700)
commit34f71de3f548eba0604c9cbabc1eb68b2f81fa0f
treec0a716edce465be07a682f8162bc292e596f248e
parentec304b70d46bd2ed66541c5b57b63276529e05b1
net: avoid false positive warnings in __net_mp_close_rxq()

Commit under Fixes solved the problem of spurious warnings when we
uninstall an MP from a device while its down. The __net_mp_close_rxq()
which is used by io_uring was not fixed. Move the fix over and reuse
__net_mp_close_rxq() in the devmem path.

Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Fixes: a70f891e0fa0 ("net: devmem: do not WARN conditionally after netdev_rx_queue_restart()")
Reviewed-by: Mina Almasry <almasrymina@google.com>
Link: https://patch.msgid.link/20250403013405.2827250-3-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/devmem.c
net/core/netdev_rx_queue.c