ipmr: RCU conversion of mroute_sk
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 1 Oct 2010 16:15:01 +0000 (16:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Oct 2010 04:50:52 +0000 (21:50 -0700)
commit4c9687098f245601e9d94178715ee03afbcc6f80
tree00e08d50538ffbf8a85a481cef351034c5a2174a
parent55747a0a73ea74a25fcebb0731e8d3f13fe8c09d
ipmr: RCU conversion of mroute_sk

Use RCU and RTNL to protect (struct mr_table)->mroute_sk

Readers use RCU, writers use RTNL.

ip_ra_control() already use an RCU grace period before
ip_ra_destroy_rcu(), so we dont need synchronize_rcu() in
mrtsock_destruct()

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipmr.c