]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
dm verity: switch to using asynchronous hash crypto API
authorGilad Ben-Yossef <gilad@benyossef.com>
Sun, 19 Feb 2017 12:46:07 +0000 (14:46 +0200)
committerMike Snitzer <snitzer@redhat.com>
Mon, 24 Apr 2017 19:37:04 +0000 (15:37 -0400)
Use of the synchronous digest API limits dm-verity to using pure
CPU based algorithm providers and rules out the use of off CPU
algorithm providers which are normally asynchronous by nature,
potentially freeing CPU cycles.

This can reduce performance per Watt in situations such as during
boot time when a lot of concurrent file accesses are made to the
protected volume.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
CC: Eric Biggers <ebiggers3@gmail.com>
CC: Ondrej Mosnáček <omosnacek+linux-crypto@gmail.com>
Tested-by: Milan Broz <gmazyland@gmail.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>

No differences found