]> git.baikalelectronics.ru Git - kernel.git/commit
ip6tnl: convert hash tables locking to RCU
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 23 Oct 2009 06:34:34 +0000 (06:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 24 Oct 2009 13:07:58 +0000 (06:07 -0700)
commit2c21ae1a6146044f10d6b15339fe32575c1b4f04
tree4b937e9869e6b72ea0b59620526a9af8fd3ddcfe
parentf04f770b11c204d9fa00706df56e810285229b88
ip6tnl: convert hash tables locking to RCU

ip6_tunnels use one rwlock to protect their hash tables.

This locking scheme can be converted to RCU for free, since netdevice
already must wait for a RCU grace period at dismantle time.

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