[IPV6] ADDRCONF: Convert addrconf_lock to RCU.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
YOSHIFUJI Hideaki
2006-09-22 14:44:24 -07:00
committed by David S. Miller
parent fbea49e1e2
commit 8814c4b533
7 changed files with 36 additions and 36 deletions

View File

@@ -321,9 +321,9 @@ static void sctp_v6_copy_addrlist(struct list_head *addrlist,
struct inet6_ifaddr *ifp;
struct sctp_sockaddr_entry *addr;
read_lock(&addrconf_lock);
rcu_read_lock();
if ((in6_dev = __in6_dev_get(dev)) == NULL) {
read_unlock(&addrconf_lock);
rcu_read_unlock();
return;
}
@@ -342,7 +342,7 @@ static void sctp_v6_copy_addrlist(struct list_head *addrlist,
}
read_unlock(&in6_dev->lock);
read_unlock(&addrconf_lock);
rcu_read_unlock();
}
/* Initialize a sockaddr_storage from in incoming skb. */