]> git.baikalelectronics.ru Git - kernel.git/commit
ipip: get rid of ipip_lock
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 15 Sep 2010 11:07:24 +0000 (11:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Sep 2010 02:29:46 +0000 (19:29 -0700)
commitbf3940ab02e4dbaa40cb4b1606fa4a9fd93f59bf
treeb5231b4e6965b4ac629c3e9feb0613e366780d0e
parentcd5dad07759d1ab1a8ab20543bac353ebcc464ff
ipip: get rid of ipip_lock

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