On Tue, Jan 13, 2009 at 10:49:07AM +0800, Huang Ying wrote: > > I can set req->data in xx_encrypt() to my original request to solve this > issue. Except that, does this solution work? Yes it would work provided that you save the original data somewhere in your context (and then restore it of course). But it'd be much simpler if you just nested the request structures (they aren't that big too start with) which means that you wouldn't need this extra completion handler at all. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html