From: Alexey Dobriyan Date: Sun, 11 Nov 2007 06:09:25 +0000 (-0800) Subject: [NETNS]: init dev_base_lock only once X-Git-Tag: v2.6.24-rc3~155^2~1 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33d36bb83c5b566c98a441e791736e25dbc35fc3;p=linux-2.6 [NETNS]: init dev_base_lock only once * it already statically initialized * reinitializing live global spinlock every time netns is setup is also wrong Signed-off-by: Alexey Dobriyan Signed-off-by: David S. Miller --- diff --git a/net/core/dev.c b/net/core/dev.c index be6cedab5a..dd7e30754c 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -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)