dm verity: only copy bvec_iter in verity_verify_io if in_tasklet
authorMike Snitzer <snitzer@kernel.org>
Thu, 4 Aug 2022 17:37:53 +0000 (13:37 -0400)
committerMike Snitzer <snitzer@kernel.org>
Thu, 4 Aug 2022 18:33:42 +0000 (14:33 -0400)
commite9307e3deb52603c4f742624fa4799c7996422d8
tree02174fe9218613675bd05bcf71230a42fc90c472
parent0a36463f4ca287e4d4ac15580c0aae5b23619212
dm verity: only copy bvec_iter in verity_verify_io if in_tasklet

Avoid extra bvec_iter copy unless it is needed to allow retrying
verification, that failed from a tasklet, from a workqueue.

Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm-verity-target.c