diff options
author | Huang Ying <ying.huang@intel.com> | 2009-02-19 14:44:02 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-02-19 14:44:02 +0800 |
commit | 1c3fb6d61b6c40e4bcaa906b29849382dcc4ad1f (patch) | |
tree | f2523a8d586e901f20113b5e7dc13ec4392f0673 /crypto/chainiv.c | |
parent | a045a18f0207835cd6a653e9a56d4d8c160dee8e (diff) | |
download | linux-crypto-1c3fb6d61b6c40e4bcaa906b29849382dcc4ad1f.tar.gz linux-crypto-1c3fb6d61b6c40e4bcaa906b29849382dcc4ad1f.zip |
crypto: chainiv - Use kcrypto_wq instead of keventd_wq
keventd_wq has potential starvation problem, so use dedicated
kcrypto_wq instead.
Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r-- | crypto/chainiv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/chainiv.c b/crypto/chainiv.c index 7c37a497..ba200b07 100644 --- a/crypto/chainiv.c +++ b/crypto/chainiv.c @@ -15,6 +15,7 @@ #include <crypto/internal/skcipher.h> #include <crypto/rng.h> +#include <crypto/crypto_wq.h> #include <linux/err.h> #include <linux/init.h> #include <linux/kernel.h> @@ -133,7 +134,7 @@ static int async_chainiv_schedule_work(struct async_chainiv_ctx *ctx) goto out; } - queued = schedule_work(&ctx->postponed); + queued = queue_work(kcrypto_wq, &ctx->postponed); BUG_ON(!queued); out: |