UPSTREAM: dm crypt: don't allocate pages for a partial request
(cherry pick from commit cf2f1abf) 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> Bug: 25392275 Change-Id: I28cd2a4ffc6910691c2fcca4c859999a1f248945
Loading
Please sign in to comment