Skip to content

Commit

Permalink
crypto: chainiv - Use kcrypto_wq instead of keventd_wq
Browse files Browse the repository at this point in the history
keventd_wq has potential starvation problem, so use dedicated
kcrypto_wq instead.

Signed-off-by: Huang Ying <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
yhuang-intel authored and herbertx committed Feb 19, 2009
1 parent 254eff7 commit 0a2e821
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions crypto/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ config CRYPTO_BLKCIPHER2
tristate
select CRYPTO_ALGAPI2
select CRYPTO_RNG2
select CRYPTO_WORKQUEUE

config CRYPTO_HASH
tristate
Expand Down
3 changes: 2 additions & 1 deletion crypto/chainiv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 0a2e821

Please sign in to comment.