diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2014-03-28 15:51:55 -0400 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2014-08-01 12:30:35 -0400 |
commit | 298a9fa08a1577211d42a75e8fc073baef61e0d9 (patch) | |
tree | e327790b5722d41e79701ed788e99d2ac40b5222 /fs | |
parent | 6a2414836154dc22b224c837ad7b862f78d595d1 (diff) | |
download | op-kernel-dev-298a9fa08a1577211d42a75e8fc073baef61e0d9.zip op-kernel-dev-298a9fa08a1577211d42a75e8fc073baef61e0d9.tar.gz |
dm crypt: use per-bio data
Change 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
previously only used mempool allocations.
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
are allocated with the bio (using target per_bio_data_size option). If
the request needs additional values, they are allocated from the mempool.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions