diff --git a/drivers/md/dm-bow.c b/drivers/md/dm-bow.c index b92da30a3d42..28df18633853 100644 --- a/drivers/md/dm-bow.c +++ b/drivers/md/dm-bow.c @@ -726,6 +726,7 @@ static int dm_bow_ctr(struct dm_target *ti, unsigned int argc, char **argv) rb_insert_color(&br->node, &bc->ranges); ti->discards_supported = true; + ti->may_passthrough_inline_crypto = true; return 0; diff --git a/drivers/md/dm-linear.c b/drivers/md/dm-linear.c index e6fd31b03c38..aa294720b14e 100644 --- a/drivers/md/dm-linear.c +++ b/drivers/md/dm-linear.c @@ -61,6 +61,7 @@ int dm_linear_ctr(struct dm_target *ti, unsigned int argc, char **argv) ti->num_discard_bios = 1; ti->num_write_same_bios = 1; ti->num_write_zeroes_bios = 1; + ti->may_passthrough_inline_crypto = true; ti->private = lc; return 0;