]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: remove dev_base_lock from register_netdevice() and friends.
authorEric Dumazet <edumazet@google.com>
Tue, 13 Feb 2024 06:32:44 +0000 (06:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Feb 2024 11:20:14 +0000 (11:20 +0000)
commite51b962438741f5482c82fb225c1d59136f0fd87
tree739a0261306f64f8161f6d2f2632691b40a21850
parent2dd4d828d648e101aaf19326afcdfee8667cb185
net: remove dev_base_lock from register_netdevice() and friends.

RTNL already protects writes to dev->reg_state, we no longer need to hold
dev_base_lock to protect the readers.

unlist_netdevice() second argument can be removed.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c