]> git.baikalelectronics.ru Git - kernel.git/commit
[IPSEC]: Move x->outer_mode->output out of locked section
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 14 Nov 2007 05:39:38 +0000 (21:39 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:53:44 +0000 (14:53 -0800)
commit005059558fa3166a2e916ed4a2b8443a0af651c7
treea8c1ef4007cd8d419aa8d8a218092b00dcd64757
parentd9c3e6242fdd18f366386ac86426fafe07307446
[IPSEC]: Move x->outer_mode->output out of locked section

RO mode is the only one that requires a locked output function.  So
it's easier to move the lock into that function rather than requiring
everyone else to run under the lock.

In particular, this allows us to move the size check into the output
function without causing a potential dead-lock should the ICMP error
somehow hit the same SA on transmission.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/xfrm6_mode_ro.c
net/xfrm/xfrm_output.c