Commit c73b7d02 authored by Tejun Heo's avatar Tejun Heo Committed by Herbert Xu

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: default avatarTejun Heo <>
Signed-off-by: default avatarHerbert Xu <>
parent 41f2977d
......@@ -20,7 +20,8 @@ EXPORT_SYMBOL_GPL(kcrypto_wq);
static int __init crypto_wq_init(void)
kcrypto_wq = create_workqueue("crypto");
kcrypto_wq = alloc_workqueue("crypto",
if (unlikely(!kcrypto_wq))
return -ENOMEM;
return 0;
......@@ -455,7 +455,8 @@ static int pcrypt_init_padata(struct padata_pcrypt *pcrypt,
pcrypt->wq = create_workqueue(name);
pcrypt->wq = alloc_workqueue(name,
if (!pcrypt->wq)
goto err;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment