]>
Commit | Line | Data |
---|---|---|
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 | 2 +- | |
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
11 | ||
12 | Index: linux-3.14-rc8/drivers/md/dm-crypt.c | |
13 | =================================================================== | |
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 | |
17 | } | |
18 | ||
19 | cc->crypt_queue = alloc_workqueue("kcryptd", | |
20 | - WQ_CPU_INTENSIVE | WQ_MEM_RECLAIM, 1); | |
21 | + WQ_CPU_INTENSIVE | WQ_MEM_RECLAIM | WQ_UNBOUND, num_online_cpus()); | |
22 | if (!cc->crypt_queue) { | |
23 | ti->error = "Couldn't create kcryptd queue"; | |
24 | goto bad; |