]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit82c11ee642b3d177a484499a55590a76c7684cb9
tree2d6f3328ac632de5b4cd5c35a79a8bc270f091fe
parenta4dce166891afdcec87d1fa8b0d77c8c0f6ed8d6
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