aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bitmap.c
diff options
context:
space:
mode:
authorMilan Broz <[email protected]>2008-10-10 12:37:08 +0000
committerAlasdair G Kergon <[email protected]>2008-10-10 12:37:08 +0000
commit933f01d43326fb12a978a8e0bb062c28a2de4d5a (patch)
tree89f25c15fb98d90ee7377437482e444a8ac6a106 /lib/bitmap.c
parentdm crypt: tidy ctx pending (diff)
downloadkernel-933f01d43326fb12a978a8e0bb062c28a2de4d5a.tar.gz
kernel-933f01d43326fb12a978a8e0bb062c28a2de4d5a.zip
dm crypt: avoid unnecessary wait when splitting bio
Don't wait between submitting crypt requests for a bio unless we are short of memory. There are two situations when we must split an encrypted bio: 1) there are no free pages; 2) the new bio would violate underlying device restrictions (e.g. max hw segments). In case (2) we do not need to wait. Add output variable to crypt_alloc_buffer() to distinguish between these cases. Signed-off-by: Milan Broz <[email protected]> Signed-off-by: Alasdair G Kergon <[email protected]>
Diffstat (limited to 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions