projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e5289e
)
netfilter: Use proper rwlock init function
author
Thomas Gleixner
<tglx@linutronix.de>
Wed, 5 Oct 2011 03:24:43 +0000
(
03:24
+0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 5 Oct 2011 21:51:38 +0000
(17:51 -0400)
Replace the open coded initialization with the init function.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Hans Schillstrom <hans.schillstrom@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/ipvs/ip_vs_ctl.c
patch
|
blob
|
history
diff --git
a/net/netfilter/ipvs/ip_vs_ctl.c
b/net/netfilter/ipvs/ip_vs_ctl.c
index
2b771dc
..
5290ac3
100644
(file)
--- a/
net/netfilter/ipvs/ip_vs_ctl.c
+++ b/
net/netfilter/ipvs/ip_vs_ctl.c
@@
-3679,7
+3679,7
@@
int __net_init ip_vs_control_net_init(struct net *net)
int idx;
struct netns_ipvs *ipvs = net_ipvs(net);
-
ipvs->rs_lock = __RW_LOCK_UNLOCKED(
ipvs->rs_lock);
+
rwlock_init(&
ipvs->rs_lock);
/* Initialize rs_table */
for (idx = 0; idx < IP_VS_RTAB_SIZE; idx++)