ip6tnl: get rid of ip6_tnl_lock
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 15 Sep 2010 20:25:34 +0000 (20:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Sep 2010 04:58:44 +0000 (21:58 -0700)
commit94767632623c7bf5b16a0cf963ec93a8ad9acca4
tree2d6f3328ac632de5b4cd5c35a79a8bc270f091fe
parentcaeda9b926c608702c99f3432aae2c24298c3c1d
ip6tnl: get rid of ip6_tnl_lock

As RTNL is held while doing tunnels inserts and deletes, we can remove
ip6_tnl_lock spinlock. My initial RCU conversion was conservative and
converted the rwlock to spinlock, with no RTNL requirement.

Use appropriate rcu annotations and modern lockdep checks as well.

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