diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2015-02-13 08:23:09 -0500 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2015-02-16 11:10:59 -0500 |
commit | f3396c58fd8442850e759843457d78b6ec3a9589 (patch) | |
tree | b91199cf703350661510f5d2eafd98edd54ba11f /Documentation | |
parent | 37527b869207ad4c208b1e13967d69b8bba1fbf9 (diff) |
dm crypt: use unbound workqueue for request processing
Use unbound workqueue by default so that work is automatically balanced
between available CPUs. The original behavior of encrypting using the
same cpu that IO was submitted on can still be enabled by setting the
optional 'same_cpu_crypt' table argument.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/device-mapper/dm-crypt.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Documentation/device-mapper/dm-crypt.txt b/Documentation/device-mapper/dm-crypt.txt index c81839b52c4d..571f24ffc91c 100644 --- a/Documentation/device-mapper/dm-crypt.txt +++ b/Documentation/device-mapper/dm-crypt.txt | |||
@@ -51,7 +51,7 @@ Parameters: <cipher> <key> <iv_offset> <device path> \ | |||
51 | Otherwise #opt_params is the number of following arguments. | 51 | Otherwise #opt_params is the number of following arguments. |
52 | 52 | ||
53 | Example of optional parameters section: | 53 | Example of optional parameters section: |
54 | 1 allow_discards | 54 | 2 allow_discards same_cpu_crypt |
55 | 55 | ||
56 | allow_discards | 56 | allow_discards |
57 | Block discard requests (a.k.a. TRIM) are passed through the crypt device. | 57 | Block discard requests (a.k.a. TRIM) are passed through the crypt device. |
@@ -63,6 +63,11 @@ allow_discards | |||
63 | used space etc.) if the discarded blocks can be located easily on the | 63 | used space etc.) if the discarded blocks can be located easily on the |
64 | device later. | 64 | device later. |
65 | 65 | ||
66 | same_cpu_crypt | ||
67 | Perform encryption using the same cpu that IO was submitted on. | ||
68 | The default is to use an unbound workqueue so that encryption work | ||
69 | is automatically balanced between available CPUs. | ||
70 | |||
66 | Example scripts | 71 | Example scripts |
67 | =============== | 72 | =============== |
68 | LUKS (Linux Unified Key Setup) is now the preferred way to set up disk | 73 | LUKS (Linux Unified Key Setup) is now the preferred way to set up disk |