]> bbs.cooldavid.org Git - net-next-2.6.git/commit
ipv6: mcast: RCU conversion
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 23 Nov 2010 13:12:15 +0000 (13:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Nov 2010 19:16:42 +0000 (11:16 -0800)
commit456b61bca8ee324ab6c18b065e632c9a8c88aa39
treed1d458d78b6fffa32558ffbf7cdfc49a316a660c
parent2757a15f08adbed9480c30bdb4e9a0bbf2b6f33a
ipv6: mcast: RCU conversion

ipv6_sk_mc_lock rwlock becomes a spinlock.

readers (inet6_mc_check()) now takes rcu_read_lock() instead of read
lock. Writers dont need to disable BH anymore.

struct ipv6_mc_socklist objects are reclaimed after one RCU grace
period.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ipv6.h
include/net/if_inet6.h
net/ipv6/mcast.c