summaryrefslogtreecommitdiffstats
path: root/crypto/pcrypt.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2011-01-04 05:38:44 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2011-01-04 13:34:08 +0100
commitc73b7d02da9bfb4fadafc118a24ee868708839b6 (patch)
tree8f3a33015c5f81443c34afd528882fe2f77ebe31 /crypto/pcrypt.c
parentcrypto: mv_cesa - dont return PTR_ERR() of wrong pointer (diff)
downloadlinux-c73b7d02da9bfb4fadafc118a24ee868708839b6.tar.xz
linux-c73b7d02da9bfb4fadafc118a24ee868708839b6.zip
crypto: mark crypto workqueues CPU_INTENSIVE
kcrypto_wq and pcrypt->wq's are used to run ciphers and may consume considerable amount of CPU cycles. Mark both as CPU_INTENSIVE so that they don't block other work items. As the workqueues are primarily used to burn CPU cycles, concurrency levels shouldn't matter much and are left at 1. A higher value may be beneficial and needs investigation. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--crypto/pcrypt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/pcrypt.c b/crypto/pcrypt.c
index de3078215fe6..806635f5d331 100644
--- a/crypto/pcrypt.c
+++ b/crypto/pcrypt.c
@@ -455,7 +455,8 @@ static int pcrypt_init_padata(struct padata_pcrypt *pcrypt,
get_online_cpus();
- pcrypt->wq = create_workqueue(name);
+ pcrypt->wq = alloc_workqueue(name,
+ WQ_MEM_RECLAIM | WQ_CPU_INTENSIVE, 1);
if (!pcrypt->wq)
goto err;