xfrm: avoid spinlock in get_acqseq()
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 29 Jan 2010 04:05:52 +0000 (04:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Feb 2010 23:55:41 +0000 (15:55 -0800)
commit28aecb9d7728dc26bf03ce7925fe622023a83a2a
treeb5adad3e5ba77bb00e13a81eea5823bc0d76fb82
parentd1c9ae6d1e7b95cedc8e39e8949e795379a0669e
xfrm: avoid spinlock in get_acqseq()

Use atomic_inc_return() in get_acqseq() to avoid taking a spinlock

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