aboutsummaryrefslogtreecommitdiff
path: root/drivers/md/persistent-data/dm-array.h
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2014-05-29 14:55:06 -0700
committerMister Oyster <oysterized@gmail.com>2017-12-27 16:06:54 +0100
commit678c38a4e42d0530ce3ba4be2462e1decb869859 (patch)
tree8885bc082f7e5ba699ae9d46da01c2e77394e08e /drivers/md/persistent-data/dm-array.h
parent5eb86bbd13942bf41d0f1467e054534d062cf9d9 (diff)
dm-crypt: use per-bio data
This patch changes dm-crypt so that it uses auxiliary data allocated with the bio. Dm-crypt requires two allocations per request - struct dm_crypt_io and struct ablkcipher_request (with other data appended to it). It used mempool for the allocation. Some requests may require more dm_crypt_ios and ablkcipher_requests, however most requests need just one of each of these two structures to complete. This patch changes it so that the first dm_crypt_io and ablkcipher_request and allocated with the bio (using target per_bio_data_size option). If the request needs additional values, they are allocated from the mempool. CRs-fixed: 670391 Change-Id: I8abc48a021391398f3b35bdd4ac9efbbec3a9fa5 Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Patch-mainline: dm-devel @ 04/05/14, 14:05 Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Diffstat (limited to 'drivers/md/persistent-data/dm-array.h')
0 files changed, 0 insertions, 0 deletions