diff options
| author | Mikulas Patocka <[email protected]> | 2015-02-13 13:23:52 +0000 |
|---|---|---|
| committer | Mike Snitzer <[email protected]> | 2015-02-16 16:11:12 +0000 |
| commit | cf2f1abfbd0dba701f7f16ef619e4d2485de3366 (patch) | |
| tree | 77faadd11b83b4faa5460be407572167e798b7a9 /lib/string_helpers.c | |
| parent | dm crypt: use unbound workqueue for request processing (diff) | |
| download | kernel-cf2f1abfbd0dba701f7f16ef619e4d2485de3366.tar.gz kernel-cf2f1abfbd0dba701f7f16ef619e4d2485de3366.zip | |
dm crypt: don't allocate pages for a partial request
Change crypt_alloc_buffer so that it only ever allocates pages for a
full request. This is a prerequisite for the commit "dm crypt: offload
writes to thread".
This change simplifies the dm-crypt code at the expense of reduced
throughput in low memory conditions (where allocation for a partial
request is most useful).
Note: the next commit ("dm crypt: avoid deadlock in mempools") is needed
to fix a theoretical deadlock.
Signed-off-by: Mikulas Patocka <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions
