]> git.baikalelectronics.ru Git - kernel.git/commit
dm: move dm-verity to generic async completion
authorGilad Ben-Yossef <gilad@benyossef.com>
Wed, 18 Oct 2017 07:00:45 +0000 (08:00 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 Nov 2017 14:11:20 +0000 (22:11 +0800)
commita031a11f2e0fc9bda3f18f361fb37b9d6531cd73
tree03a5ad94137a344221d9df49a1521302df40b427
parentc7e0231422e0a1e00389b590c284c71f7cd011e3
dm: move dm-verity to generic async completion

dm-verity is starting async. crypto ops and waiting for them to complete.
Move it over to generic code doing the same.

This also avoids a future potential data coruption bug created
by the use of wait_for_completion_interruptible() without dealing
correctly with an interrupt aborting the wait prior to the
async op finishing, should this code ever move to a context
where signals are not masked.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
CC: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/md/dm-verity-target.c
drivers/md/dm-verity.h