l2tp: fix locking of 64-bit counters for smp
authorJames Chapman <jchapman@katalix.com>
Sun, 29 Apr 2012 21:48:46 +0000 (21:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 May 2012 13:30:54 +0000 (09:30 -0400)
commit5de7aee5413cdfe6f96289a84a5ad22b1314e873
treef1c6cf02dde574fd0c23598132b9352512cb03a5
parent80bcb4238dd858d8ae460b62aac2f4165db58c3c
l2tp: fix locking of 64-bit counters for smp

L2TP uses 64-bit counters but since these are not updated atomically,
we need to make them safe for smp. This patch addresses that.

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