]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd1ece04f20ed99103d92c0b762ea3ad13c3a175d
treeb5adad3e5ba77bb00e13a81eea5823bc0d76fb82
parentae99b9b478ce05595b9e27214e532b2db252e619
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