sit: get rid of ipip6_lock
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 15 Sep 2010 11:35:10 +0000 (11:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Sep 2010 02:29:47 +0000 (19:29 -0700)
commit3a43be3c328ff42327da0b141de360dc4587aab7
tree669c86867533e70dfe3a2aa52e17802aeb2e60bf
parent1507850b400492fdedc3064d3b8db5e9a1c871e3
sit: get rid of ipip6_lock

As RTNL is held while doing tunnels inserts and deletes, we can remove
ipip6_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/sit.c