Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: remove redundant ASSERT_RTNL() in queue setup functions

The existing netdev_ops_assert_locked() already asserts that either
the RTNL lock or the per-device lock is held, making the explicit
ASSERT_RTNL() redundant.

Cc: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Stanislav Fomichev <stfomichev@gmail.com>
Link: https://patch.msgid.link/20250616162117.287806-5-stfomichev@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Stanislav Fomichev and committed by
Jakub Kicinski
3a321b6b 1ead7501

-2
-2
net/core/dev.c
··· 3179 3179 3180 3180 if (dev->reg_state == NETREG_REGISTERED || 3181 3181 dev->reg_state == NETREG_UNREGISTERING) { 3182 - ASSERT_RTNL(); 3183 3182 netdev_ops_assert_locked(dev); 3184 3183 3185 3184 rc = netdev_queue_update_kobjects(dev, dev->real_num_tx_queues, ··· 3228 3229 return -EINVAL; 3229 3230 3230 3231 if (dev->reg_state == NETREG_REGISTERED) { 3231 - ASSERT_RTNL(); 3232 3232 netdev_ops_assert_locked(dev); 3233 3233 3234 3234 rc = net_rx_queue_update_kobjects(dev, dev->real_num_rx_queues,