-
Notifications
You must be signed in to change notification settings - Fork 0
dm-crypt: support relaxed memory alignment #486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: linus-master_base
Are you sure you want to change the base?
Conversation
|
Upstream branch: b543459 |
|
Upstream branch: b543459 |
4899f18 to
bfb6aa9
Compare
06634b5 to
8a473ad
Compare
|
Upstream branch: 944aacb |
bfb6aa9 to
54a6e8d
Compare
8a473ad to
fa94b37
Compare
|
Upstream branch: 944aacb |
54a6e8d to
8c7ab8b
Compare
fa94b37 to
41a5848
Compare
|
Upstream branch: 6c79021 |
8c7ab8b to
96e5862
Compare
41a5848 to
30680e5
Compare
|
Upstream branch: a66191c |
96e5862 to
c06e1f4
Compare
30680e5 to
067dca5
Compare
|
Upstream branch: 6208587 |
c06e1f4 to
8876492
Compare
067dca5 to
1dff21b
Compare
|
Upstream branch: d91a46d |
8876492 to
b46e42f
Compare
1dff21b to
b44af19
Compare
|
Upstream branch: fcb70a5 |
b46e42f to
e89eb2c
Compare
b44af19 to
483aa43
Compare
|
Upstream branch: 8dfce89 |
e89eb2c to
a25c199
Compare
483aa43 to
9d3c6de
Compare
|
Upstream branch: de0674d |
a25c199 to
916a4b4
Compare
9d3c6de to
7c2ae0a
Compare
|
Upstream branch: f14faaf |
916a4b4 to
42d9d2b
Compare
7c2ae0a to
54294d6
Compare
|
Upstream branch: b7ff715 |
42d9d2b to
97c3b99
Compare
54294d6 to
eb49f7b
Compare
|
Upstream branch: e7aa572 |
97c3b99 to
e036b68
Compare
eb49f7b to
30e5c22
Compare
|
Upstream branch: 05f7e89 |
e036b68 to
cbbe56e
Compare
30e5c22 to
519f160
Compare
|
Upstream branch: c22e26b |
cbbe56e to
48a82b6
Compare
519f160 to
49ecc64
Compare
Many storage devices can handle DMA for data that is not aligned to the sector block size. The block and filesystem layers have introduced updates to allow that kind of memory alignment flexibility when possible. dm-crypt, however, currently constrains itself to aligned memory because it sends a single scatterlist element for the in/out list to the encrypt and decrypt algorithms. This forces applications that have unaligned data to copy through a bounce buffer, increasing CPU and memory utilization. Use multiple scatterlist elements to relax the memory alignment requirement. To keep this simple, this more flexible constraint is enabled only for certain encryption and initialization vector types, specifically the ones that don't have additional use for the request base scatterlist elements beyond holding decrypted data. Signed-off-by: Keith Busch <[email protected]>
In the unlikely case where the base bio uses a highly fragmented vector, the four inline scatterlist elements may not be enough, so allocate a temporary scatterlist when needed. Signed-off-by: Keith Busch <[email protected]>
|
Upstream branch: 37a93dd |
48a82b6 to
24ee354
Compare
Pull request for series with
subject: dm-crypt: support relaxed memory alignment
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1042385