]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit63edf8f6b9270b04629ecb69b6a4d57165474630
tree68a3c19ce392998693b83f7db96c4ed1bc140406
parent654563a37b6eaab9f2ff4a79aad12d676f3d0046
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