Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=33d36bb83c5b566c98a441e791736e25dbc35fc3
Commit:     33d36bb83c5b566c98a441e791736e25dbc35fc3
Parent:     284b327be2f86cf751316ff344b6945e580e654f
Author:     Alexey Dobriyan <[EMAIL PROTECTED]>
AuthorDate: Sat Nov 10 22:09:25 2007 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Sat Nov 10 22:09:25 2007 -0800

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 net/core/dev.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/net/core/dev.c b/net/core/dev.c
index be6ceda..dd7e307 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)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to