Skip to contentSkip to conversation

netns: init dev_base_lock only once

PATCH Applied Alexey Dobriyan 2 participants 2 messages Nov 7, 2007 – Nov 11, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 netns: init dev_base_lock only once

* it already statically initialized
* reinitializing live global spinlock every time netns is setup is also wrong

---

 net/core/dev.c |    1 -
 1 file changed, 1 deletion(-)
net/core/dev.c +0 -1
@@ -4330,7 +4330,6 @@ static struct hlist_head *netdev_create_hash(void)
 static int __net_init netdev_init(struct net *net)
 {
 	INIT_LIST_HEAD(&net->dev_base_head);
-	rwlock_init(&dev_base_lock);
 
 	net->dev_name_head = netdev_create_hash();
 	if (net->dev_name_head == NULL)