summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-verity.h
diff options
context:
space:
mode:
authorGilad Ben-Yossef <gilad@benyossef.com>2017-10-18 09:00:45 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2017-11-03 15:11:20 +0100
commit12f1ffc40a81fe825eedb02b63dc3e1bd6f7e689 (patch)
tree03a5ad94137a344221d9df49a1521302df40b427 /drivers/md/dm-verity.h
parentfscrypt: move to generic async completion (diff)
downloadlinux-12f1ffc40a81fe825eedb02b63dc3e1bd6f7e689.tar.xz
linux-12f1ffc40a81fe825eedb02b63dc3e1bd6f7e689.zip
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>
Diffstat (limited to '')
-rw-r--r--drivers/md/dm-verity.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/md/dm-verity.h b/drivers/md/dm-verity.h
index a59e0ada6fd3..b675bc015512 100644
--- a/drivers/md/dm-verity.h
+++ b/drivers/md/dm-verity.h
@@ -90,11 +90,6 @@ struct dm_verity_io {
*/
};
-struct verity_result {
- struct completion completion;
- int err;
-};
-
static inline struct ahash_request *verity_io_hash_req(struct dm_verity *v,
struct dm_verity_io *io)
{