aboutsummaryrefslogtreecommitdiff
path: root/crypto/chainiv.c
diff options
context:
space:
mode:
authorHuang Ying <ying.huang@intel.com>2009-02-19 14:44:02 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2009-02-19 14:44:02 +0800
commit0a2e821d627ad5ced23cf31137625b81cc205e0f (patch)
tree91189bc8b4a558649842721c555df60da5269b06 /crypto/chainiv.c
parent254eff771441f4ee7aa9cf770a6e4820492c9dab (diff)
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 'crypto/chainiv.c')
-rw-r--r--crypto/chainiv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/chainiv.c b/crypto/chainiv.c
index 7c37a497b86..ba200b07449 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: