l2tp: Convert rwlock to RCU
authorJames Chapman <jchapman@katalix.com>
Fri, 2 Apr 2010 06:19:16 +0000 (06:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Apr 2010 21:56:06 +0000 (14:56 -0700)
commite02d494d2c60746ee6583132904ac1791f5bc9a6
tree68a3c19ce392998693b83f7db96c4ed1bc140406
parent309795f4bec2d69cd507a631f82065c2198a0825
l2tp: Convert rwlock to RCU

Reader/write locks are discouraged because they are slower than spin
locks. So this patch converts the rwlocks used in the per_net structs
to rcu.

Signed-off-by: James Chapman <jchapman@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_core.c