]> git.pld-linux.org Git - packages/kernel.git/blame - dm-crypt-unbound-workqueue.patch
restore lost tabs
[packages/kernel.git] / dm-crypt-unbound-workqueue.patch
CommitLineData
101a7448
ŁK
1dm-crypt: use unbound workqueue for request processing
2
3Use unbound workqueue so that work is automatically ballanced between
4available CPUs.
5
6Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
7
8---
9 drivers/md/dm-crypt.c | 5 +++--
10 1 file changed, 3 insertions(+), 2 deletions(-)
11
3f63f64f 12Index: linux-3.10.4-fast/drivers/md/dm-crypt.c
101a7448 13===================================================================
3f63f64f
ŁK
14--- linux-3.12/drivers/md/dm-crypt.c.orig 2013-11-12 11:02:03.770083857 +0100
15+++ linux-3.12/drivers/md/dm-crypt.c 2013-11-12 12:03:46.890126367 +0100
16@@ -1615,7 +1615,7 @@
17 }
18
101a7448 19 cc->crypt_queue = alloc_workqueue("kcryptd",
3f63f64f
ŁK
20- WQ_CPU_INTENSIVE | WQ_MEM_RECLAIM, 1);
21+ WQ_CPU_INTENSIVE | WQ_MEM_RECLAIM | WQ_UNBOUND, num_online_cpus());
101a7448
ŁK
22 if (!cc->crypt_queue) {
23 ti->error = "Couldn't create kcryptd queue";
24 goto bad;
This page took 0.060415 seconds and 4 git commands to generate.