]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit32b85f037c7155115688f30e094ce4901310d24a
tree564a6181d22925a9dfc25eb7c69af735a0f6c399
parentb2357167e5059276ab3eb58038437f20de09a35a
dm verity: switch to using asynchronous hash crypto API

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>
drivers/md/dm-verity-fec.c
drivers/md/dm-verity-target.c
drivers/md/dm-verity.h