]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: avoid spinlock in get_acqseq() used by xfrm user
authorjamal <hadi@cyberus.ca>
Tue, 16 Feb 2010 02:01:22 +0000 (02:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Feb 2010 04:20:24 +0000 (20:20 -0800)
commite9eb8b2bd74759d58e3a433a5b79a24d1d4f1011
tree39eb8e910213e71ab707ad5d3e0b1606fa844f54
parent78b95de86c6a329a126ef3fbab6bb89c77804275
xfrm: avoid spinlock in get_acqseq() used by xfrm user

Eric's version fixed it for pfkey. This one is for xfrm user.
I thought about amortizing those two get_acqseq()s but it seems
reasonable to have two of these sequence spaces for the two different
interfaces.

cheers,
jamal
commit d5168d5addbc999c94aacda8f28a4a173756a72b
Author: Jamal Hadi Salim <hadi@cyberus.ca>
Date:   Tue Feb 16 06:51:22 2010 -0500

    xfrm: avoid spinlock in get_acqseq() used by xfrm user

    This is in the same spirit as commit d1ece04f20ed99103d92c0b762ea3ad13c3a175d
    by Eric Dumazet.
    Use atomic_inc_return() in get_acqseq() to avoid taking a spinlock

Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_state.c