From 9137193d4ee264bbc4ef38e2dfe0c6c9e001642c Mon Sep 17 00:00:00 2001 From: Ed Tsai Date: Fri, 14 Feb 2025 23:33:06 +0800 Subject: [PATCH] BACKPORT: FROMLIST: dm: Enable inline crypto passthrough for striped target Added DM_TARGET_PASSES_CRYPTO feature to the striped target to utilize the hardware encryption of the underlying storage devices, preventing fallback to the crypto API. Bug: 397299914 Link: https://lore.kernel.org/lkml/20250216144224.1702385-2-ed.tsai@mediatek.com/ Change-Id: I0658cb11046be785e337c6b5e46c3674e9261ce0 Signed-off-by: Ed Tsai --- drivers/md/dm-stripe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/md/dm-stripe.c b/drivers/md/dm-stripe.c index 4112071de0be..1dba4b28bd5d 100644 --- a/drivers/md/dm-stripe.c +++ b/drivers/md/dm-stripe.c @@ -466,7 +466,8 @@ static void stripe_io_hints(struct dm_target *ti, static struct target_type stripe_target = { .name = "striped", .version = {1, 6, 0}, - .features = DM_TARGET_PASSES_INTEGRITY | DM_TARGET_NOWAIT, + .features = DM_TARGET_PASSES_INTEGRITY | DM_TARGET_NOWAIT | + DM_TARGET_PASSES_CRYPTO, .module = THIS_MODULE, .ctr = stripe_ctr, .dtr = stripe_dtr,