All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dm: set DM_TARGET_PASSES_CRYPTO feature for dm-thin
@ 2025-07-30  6:17 LongPing Wei
  2025-07-30 10:46 ` Mikulas Patocka
  0 siblings, 1 reply; 8+ messages in thread
From: LongPing Wei @ 2025-07-30  6:17 UTC (permalink / raw)
  To: mpatocka; +Cc: dm-devel, guoweichao, snitzer, LongPing Wei

dm-thin obviously can pass through inline crypto support.

Signed-off-by: LongPing Wei <weilongping@oppo.com>
---
 drivers/md/dm-thin.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c
index 05cf4e3f2bbe..42f218dcf99f 100644
--- a/drivers/md/dm-thin.c
+++ b/drivers/md/dm-thin.c
@@ -4111,7 +4111,7 @@ 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,
+		    DM_TARGET_IMMUTABLE | DM_TARGET_PASSES_CRYPTO,
 	.version = {1, 23, 0},
 	.module = THIS_MODULE,
 	.ctr = pool_ctr,
@@ -4509,6 +4509,7 @@ static struct target_type thin_target = {
 	.status = thin_status,
 	.iterate_devices = thin_iterate_devices,
 	.io_hints = thin_io_hints,
+	.features = DM_TARGET_PASSES_CRYPTO,
 };
 
 /*----------------------------------------------------------------*/
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-08-01  1:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-30  6:17 [PATCH] dm: set DM_TARGET_PASSES_CRYPTO feature for dm-thin LongPing Wei
2025-07-30 10:46 ` Mikulas Patocka
2025-07-30 11:59   ` LongPing Wei
2025-07-30 12:27     ` Mikulas Patocka
2025-07-30 13:08       ` LongPing Wei
2025-07-31 16:04         ` Mikulas Patocka
2025-07-31 18:30           ` Eric Biggers
2025-08-01  1:31             ` LongPing Wei

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.