]> git.baikalelectronics.ru Git - kernel.git/commitdiff
dm: set DM_TARGET_PASSES_CRYPTO feature for some targets
authorSatya Tangirala <satyat@google.com>
Mon, 1 Feb 2021 05:10:19 +0000 (05:10 +0000)
committerMike Snitzer <snitzer@redhat.com>
Thu, 11 Feb 2021 14:45:26 +0000 (09:45 -0500)
dm-linear and dm-flakey obviously can pass through inline crypto support.

Co-developed-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Satya Tangirala <satyat@google.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-flakey.c
drivers/md/dm-linear.c

index a2cc9e45cbba1639ede3cf51d324a4ec4685d2f1..30c6bc1512137b12cdd0a9ff8e7a2d5d33be372a 100644 (file)
@@ -482,8 +482,10 @@ static struct target_type flakey_target = {
        .name   = "flakey",
        .version = {1, 5, 0},
 #ifdef CONFIG_BLK_DEV_ZONED
-       .features = DM_TARGET_ZONED_HM,
+       .features = DM_TARGET_ZONED_HM | DM_TARGET_PASSES_CRYPTO,
        .report_zones = flakey_report_zones,
+#else
+       .features = DM_TARGET_PASSES_CRYPTO,
 #endif
        .module = THIS_MODULE,
        .ctr    = flakey_ctr,
index 00774b5d7668adc4dec198e8b16b5d03f90aa9ac..fc9c4272c10dbac2b5a76ab59379bbf1e00f26e0 100644 (file)
@@ -229,10 +229,11 @@ static struct target_type linear_target = {
        .version = {1, 4, 0},
 #ifdef CONFIG_BLK_DEV_ZONED
        .features = DM_TARGET_PASSES_INTEGRITY | DM_TARGET_NOWAIT |
-                   DM_TARGET_ZONED_HM,
+                   DM_TARGET_ZONED_HM | DM_TARGET_PASSES_CRYPTO,
        .report_zones = linear_report_zones,
 #else
-       .features = DM_TARGET_PASSES_INTEGRITY | DM_TARGET_NOWAIT,
+       .features = DM_TARGET_PASSES_INTEGRITY | DM_TARGET_NOWAIT |
+                   DM_TARGET_PASSES_CRYPTO,
 #endif
        .module = THIS_MODULE,
        .ctr    = linear_ctr,