summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-10-05 03:24:43 +0000
committerDavid S. Miller <davem@davemloft.net>2011-10-05 17:51:38 -0400
commit3458e21c0d384ca04b27a2ea24d9314c1b57530f (patch)
tree29fb8c151499d28a5aa3da07b8ac34f9fcb86739 /net
parent1e5289e121372a3494402b1b131b41bfe1cf9b7f (diff)
downloadlinux-3.10-3458e21c0d384ca04b27a2ea24d9314c1b57530f.tar.gz
linux-3.10-3458e21c0d384ca04b27a2ea24d9314c1b57530f.tar.bz2
linux-3.10-3458e21c0d384ca04b27a2ea24d9314c1b57530f.zip
netfilter: Use proper rwlock init function
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>
Diffstat (limited to 'net')
-rw-r--r--net/netfilter/ipvs/ip_vs_ctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c
index 2b771dc708a..5290ac353a5 100644
--- 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++)