gre: get rid of ipgre_lock
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 15 Sep 2010 11:07:53 +0000 (11:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Sep 2010 02:29:46 +0000 (19:29 -0700)
commit1507850b400492fdedc3064d3b8db5e9a1c871e3
tree0f0039380a7c2ec30b3bb114b68edba7865762d5
parentb7285b7912776a4492744949c747c88d539006fa
gre: get rid of ipgre_lock

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