Skip to content

Commit 55a0fbd

Browse files
LongPing WeiMikulas Patocka
authored andcommitted
dm: set DM_TARGET_PASSES_CRYPTO feature for dm-thin
dm-thin obviously can pass through inline crypto support. Signed-off-by: LongPing Wei <[email protected]> Signed-off-by: Mikulas Patocka <[email protected]>
1 parent 9576e1a commit 55a0fbd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/md/dm-thin.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4111,8 +4111,8 @@ static void pool_io_hints(struct dm_target *ti, struct queue_limits *limits)
41114111
static struct target_type pool_target = {
41124112
.name = "thin-pool",
41134113
.features = DM_TARGET_SINGLETON | DM_TARGET_ALWAYS_WRITEABLE |
4114-
DM_TARGET_IMMUTABLE,
4115-
.version = {1, 23, 0},
4114+
DM_TARGET_IMMUTABLE | DM_TARGET_PASSES_CRYPTO,
4115+
.version = {1, 24, 0},
41164116
.module = THIS_MODULE,
41174117
.ctr = pool_ctr,
41184118
.dtr = pool_dtr,
@@ -4497,7 +4497,8 @@ static void thin_io_hints(struct dm_target *ti, struct queue_limits *limits)
44974497

44984498
static struct target_type thin_target = {
44994499
.name = "thin",
4500-
.version = {1, 23, 0},
4500+
.features = DM_TARGET_PASSES_CRYPTO,
4501+
.version = {1, 24, 0},
45014502
.module = THIS_MODULE,
45024503
.ctr = thin_ctr,
45034504
.dtr = thin_dtr,

0 commit comments

Comments
 (0)