diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2015-02-13 08:23:52 -0500 |
---|---|---|
committer | Alex Shi <alex.shi@linaro.org> | 2015-06-24 11:39:09 +0800 |
commit | b5ac9627389a0ecc27c96504655bad295f25287c (patch) | |
tree | f5c60c2564419b9c50a227b19f5c9acc24017e72 /fs | |
parent | ce073c5b940c054e7049c89bde33fb918b316e00 (diff) |
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 <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
(cherry picked from commit cf2f1abfbd0dba701f7f16ef619e4d2485de3366)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions