]> git.pld-linux.org Git - packages/kernel.git/blame - dm-crypt-unbound-workqueue.patch
- 3.14.32
[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---
0a2e4279
ŁK
9 drivers/md/dm-crypt.c | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
101a7448 11
0a2e4279 12Index: linux-3.14-rc8/drivers/md/dm-crypt.c
101a7448 13===================================================================
0a2e4279
ŁK
14--- linux-3.14-rc8.orig/drivers/md/dm-crypt.c 2014-03-25 22:57:00.000000000 +0100
15+++ linux-3.14-rc8/drivers/md/dm-crypt.c 2014-03-28 17:09:14.000000000 +0100
16@@ -1800,7 +1800,7 @@ static int crypt_ctr(struct dm_target *t
3f63f64f
ŁK
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.036995 seconds and 4 git commands to generate.