]> git.baikalelectronics.ru Git - kernel.git/commit
igmp: RCU conversion of in_dev->mc_list
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 12 Nov 2010 05:46:50 +0000 (05:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Nov 2010 21:18:57 +0000 (13:18 -0800)
commit774d8be30b512b3bfdd5ed5742f43a7e26af8544
treef7abb08bfdf35d1e876f93d24ce44072d2f6ed72
parentfbc449c2326b9ab627b0456acd830e9a19c1553b
igmp: RCU conversion of in_dev->mc_list

in_dev->mc_list is protected by one rwlock (in_dev->mc_list_lock).

This can easily be converted to a RCU protection.

Writers hold RTNL, so mc_list_lock is removed, not replaced by a
spinlock.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Cypher Wu <cypher.w@gmail.com>
Cc: Américo Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/igmp.h
include/linux/inetdevice.h
include/net/inet_sock.h
net/ipv4/igmp.c