diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-21 16:28:45 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-21 16:28:45 -0500 |
commit | a911dcdba190ddf77e9199b9917156f879f42d4b (patch) | |
tree | c94d84a9fa48520cd993670a0b4f434c4dcb48db /Documentation | |
parent | e20d3ef5406d3a28b76a63905b2a6bd3fb95c377 (diff) | |
parent | 22aa66a3ee5b61e0f4a0bfeabcaa567861109ec3 (diff) |
Merge tag 'dm-3.20-changes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm
Pull more device mapper changes from Mike Snitzer:
- Significant dm-crypt CPU scalability performance improvements thanks
to changes that enable effective use of an unbound workqueue across
all available CPUs. A large battery of tests were performed to
validate these changes, summary of results is available here:
https://www.redhat.com/archives/dm-devel/2015-February/msg00106.html
- A few additional stable fixes (to DM core, dm-snapshot and dm-mirror)
and a small fix to the dm-space-map-disk.
* tag 'dm-3.20-changes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
dm snapshot: fix a possible invalid memory access on unload
dm: fix a race condition in dm_get_md
dm crypt: sort writes
dm crypt: add 'submit_from_crypt_cpus' option
dm crypt: offload writes to thread
dm crypt: remove unused io_pool and _crypt_io_pool
dm crypt: avoid deadlock in mempools
dm crypt: don't allocate pages for a partial request
dm crypt: use unbound workqueue for request processing
dm io: reject unsupported DISCARD requests with EOPNOTSUPP
dm mirror: do not degrade the mirror on discard error
dm space map disk: fix sm_disk_count_is_more_than_one()
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/device-mapper/dm-crypt.txt | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/Documentation/device-mapper/dm-crypt.txt b/Documentation/device-mapper/dm-crypt.txt index c81839b52c4d..ad697781f9ac 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 | 3 allow_discards same_cpu_crypt submit_from_crypt_cpus |
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,19 @@ 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 | |||
71 | submit_from_crypt_cpus | ||
72 | Disable offloading writes to a separate thread after encryption. | ||
73 | There are some situations where offloading write bios from the | ||
74 | encryption threads to a single thread degrades performance | ||
75 | significantly. The default is to offload write bios to the same | ||
76 | thread because it benefits CFQ to have writes submitted using the | ||
77 | same context. | ||
78 | |||
66 | Example scripts | 79 | Example scripts |
67 | =============== | 80 | =============== |
68 | LUKS (Linux Unified Key Setup) is now the preferred way to set up disk | 81 | LUKS (Linux Unified Key Setup) is now the preferred way to set up disk |