]> git.pld-linux.org Git - packages/kernel.git/blob - dm-crypt-unbound-workqueue.patch
- 3.1.101
[packages/kernel.git] / dm-crypt-unbound-workqueue.patch
1 dm-crypt: use unbound workqueue for request processing
2
3 Use unbound workqueue so that work is automatically ballanced between
4 available CPUs.
5
6 Signed-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
12 Index: linux-3.10.4-fast/drivers/md/dm-crypt.c
13 ===================================================================
14 --- linux-3.10.4-fast.orig/drivers/md/dm-crypt.c        2013-07-31 17:03:10.000000000 +0200
15 +++ linux-3.10.4-fast/drivers/md/dm-crypt.c     2013-07-31 17:03:18.000000000 +0200
16 @@ -1620,8 +1620,9 @@ static int crypt_ctr(struct dm_target *t
17         cc->crypt_queue = alloc_workqueue("kcryptd",
18                                           WQ_NON_REENTRANT|
19                                           WQ_CPU_INTENSIVE|
20 -                                         WQ_MEM_RECLAIM,
21 -                                         1);
22 +                                         WQ_MEM_RECLAIM|
23 +                                         WQ_UNBOUND,
24 +                                         num_online_cpus());
25         if (!cc->crypt_queue) {
26                 ti->error = "Couldn't create kcryptd queue";
27                 goto bad;
This page took 0.084547 seconds and 3 git commands to generate.