Thread (7 messages) read the whole thread 7 messages, 3 authors, 2025-03-09

Re: [PATCH net-next v1] dev: remove netdev_lock() and netdev_lock_ops() in register_netdevice().

From: Stanislav Fomichev <hidden>
Date: 2025-03-09 21:41:31
Also in: bpf, lkml

On 03/08, Stanislav Fomichev wrote:
On 03/08, Jakub Kicinski wrote:
quoted
On Sun, 9 Mar 2025 05:37:18 +0900 Kohei Enju wrote:
quoted
Both netdev_lock() and netdev_lock_ops() are called before
list_netdevice() in register_netdevice().
No other context can access the struct net_device, so we don't need these
locks in this context.
That's technically true, but it will set off a bunch of lockdep
warnings :-(
Let me drop it for now from the nipa because it does complain about it:
https://netdev-3.bots.linux.dev/vmksft-net-dbg/results/24641/67-nl-netdev-py/stderr

---
pw-bot: cr
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help