]> err.no Git - linux-2.6/commit
[IPCOMP]: Disable BH on output when using shared tfm
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 28 Feb 2008 19:23:17 +0000 (11:23 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Feb 2008 19:23:17 +0000 (11:23 -0800)
commit21e43188f272c7fd9efc84b8244c0b1dfccaa105
treead0313f88c3abe948e5a5ec61fd404a5cbfd2972
parent60717f7e761ca04925d17e90e556e689ab134cdc
[IPCOMP]: Disable BH on output when using shared tfm

Because we use shared tfm objects in order to conserve memory,
(each tfm requires 128K of vmalloc memory), BH needs to be turned
off on output as that can occur in process context.

Previously this was done implicitly by the xfrm output code.
That was lost when it became lockless.  So we need to add the
BH disabling to IPComp directly.

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