Skip to content

Commit 83637d9

Browse files
author
Mike Snitzer
committed
dm-crypt: don't set WQ_CPU_INTENSIVE for WQ_UNBOUND crypt_queue
Fix crypt_queue's use of WQ_UNBOUND to _not_ use WQ_CPU_INTENSIVE because it is meaningless with WQ_UNBOUND. Signed-off-by: Mike Snitzer <snitzer@kernel.org>
1 parent 1c0e720 commit 83637d9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/md/dm-crypt.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3431,8 +3431,12 @@ static int crypt_ctr(struct dm_target *ti, unsigned int argc, char **argv)
34313431
common_wq_flags | WQ_CPU_INTENSIVE,
34323432
1, devname, wq_id);
34333433
} else {
3434+
/*
3435+
* While crypt_queue is certainly CPU intensive, the use of
3436+
* WQ_CPU_INTENSIVE is meaningless with WQ_UNBOUND.
3437+
*/
34343438
cc->crypt_queue = alloc_workqueue("kcryptd-%s-%d",
3435-
common_wq_flags | WQ_CPU_INTENSIVE | WQ_UNBOUND,
3439+
common_wq_flags | WQ_UNBOUND,
34363440
num_online_cpus(), devname, wq_id);
34373441
}
34383442
if (!cc->crypt_queue) {

0 commit comments

Comments
 (0)