gre: convert hash tables locking to RCU
commit8d5b2c084d2e71587e30a6ef528a8a8051e59dcd
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 23 Oct 2009 06:14:38 +0000 (23 06:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 24 Oct 2009 13:07:59 +0000 (24 06:07 -0700)
treea66dd86d178eb5ce50a1704e085542ae3516e398
parent2922bc8aedfcd41ca6171cfe1a79ff111ad72019
gre: convert hash tables locking to RCU

GRE 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/ipv4/ip_gre.c