IPv6: convert addrconf hash list to RCU

Convert from reader/writer lock to RCU and spinlock for addrconf
hash list.

Adds an additional helper macro for hlist_for_each_entry_continue_rcu
to handle the continue case.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
stephen hemminger 2010-03-17 20:31:11 +00:00 committed by David S. Miller
parent c2e21293c0
commit 5c578aedcb
3 changed files with 58 additions and 41 deletions

View file

@ -64,6 +64,7 @@ struct inet6_ifaddr {
#endif
int dead;
struct rcu_head rcu;
};
struct ip6_sf_socklist {