projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
284b327
)
[NETNS]: init dev_base_lock only once
author
Alexey Dobriyan
<adobriyan@sw.ru>
Sun, 11 Nov 2007 06:09:25 +0000
(22:09 -0800)
committer
David S. Miller
<davem@davemloft.net>
Sun, 11 Nov 2007 06:09:25 +0000
(22:09 -0800)
* it already statically initialized
* reinitializing live global spinlock every time netns is
setup is also wrong
Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c
patch
|
blob
|
blame
|
history
diff --git
a/net/core/dev.c
b/net/core/dev.c
index be6cedab5aa83cc3d5551e89ef66d5597dfccbf0..dd7e30754cbc4c9705200ef02b227300272912f4 100644
(file)
--- 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)