Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dm-stripe: Enable atomic writes

Set feature flag DM_TARGET_ATOMIC_WRITES.

Similar to md raid0, the chunk size set in stripe_io_hints() limits the
atomic write unit max.

Signed-off-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>

authored by

John Garry and committed by
Mikulas Patocka
30b88ed0 487d1a9c

+3 -2
+3 -2
drivers/md/dm-stripe.c
··· 465 465 466 466 static struct target_type stripe_target = { 467 467 .name = "striped", 468 - .version = {1, 6, 0}, 469 - .features = DM_TARGET_PASSES_INTEGRITY | DM_TARGET_NOWAIT, 468 + .version = {1, 7, 0}, 469 + .features = DM_TARGET_PASSES_INTEGRITY | DM_TARGET_NOWAIT | 470 + DM_TARGET_ATOMIC_WRITES, 470 471 .module = THIS_MODULE, 471 472 .ctr = stripe_ctr, 472 473 .dtr = stripe_dtr,