[PATCH v20 10/12] dm: Enable copy offload for dm-linear target
Nitesh Shetty
nj.shetty at samsung.com
Mon May 20 03:20:23 PDT 2024
Setting copy_offload_supported flag to enable offload.
Reviewed-by: Hannes Reinecke <hare at suse.de>
Signed-off-by: Nitesh Shetty <nj.shetty at samsung.com>
---
drivers/md/dm-linear.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/md/dm-linear.c b/drivers/md/dm-linear.c
index 2d3e186ca87e..cfec2fac28e1 100644
--- a/drivers/md/dm-linear.c
+++ b/drivers/md/dm-linear.c
@@ -62,6 +62,7 @@ static int linear_ctr(struct dm_target *ti, unsigned int argc, char **argv)
ti->num_discard_bios = 1;
ti->num_secure_erase_bios = 1;
ti->num_write_zeroes_bios = 1;
+ ti->copy_offload_supported = 1;
ti->private = lc;
return 0;
--
2.17.1
More information about the Linux-nvme
mailing list