summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLongPing Wei <weilongping@oppo.com>2025-07-30 14:17:19 +0800
committerMikulas Patocka <mpatocka@redhat.com>2025-07-31 16:30:02 +0200
commit55a0fbd2ac3fe8f61a30ea697b2eb3034f6778c8 (patch)
tree60ca8632e0d8b34eb2673fc675105a85789c1c24
parent9576e1aecf627ac99c369fc8cd265b4847ed0c50 (diff)
dm: set DM_TARGET_PASSES_CRYPTO feature for dm-thin
dm-thin obviously can pass through inline crypto support. Signed-off-by: LongPing Wei <weilongping@oppo.com> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
-rw-r--r--drivers/md/dm-thin.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c
index 05cf4e3f2bbea..007bb93e5fca6 100644
--- a/drivers/md/dm-thin.c
+++ b/drivers/md/dm-thin.c
@@ -4111,8 +4111,8 @@ static void pool_io_hints(struct dm_target *ti, struct queue_limits *limits)
static struct target_type pool_target = {
.name = "thin-pool",
.features = DM_TARGET_SINGLETON | DM_TARGET_ALWAYS_WRITEABLE |
- DM_TARGET_IMMUTABLE,
- .version = {1, 23, 0},
+ DM_TARGET_IMMUTABLE | DM_TARGET_PASSES_CRYPTO,
+ .version = {1, 24, 0},
.module = THIS_MODULE,
.ctr = pool_ctr,
.dtr = pool_dtr,
@@ -4497,7 +4497,8 @@ static void thin_io_hints(struct dm_target *ti, struct queue_limits *limits)
static struct target_type thin_target = {
.name = "thin",
- .version = {1, 23, 0},
+ .features = DM_TARGET_PASSES_CRYPTO,
+ .version = {1, 24, 0},
.module = THIS_MODULE,
.ctr = thin_ctr,
.dtr = thin_dtr,