Skip to content

Commit 30b88ed

Browse files
johnpgarryMikulas Patocka
authored andcommitted
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 <[email protected]> Reviewed-by: Mike Snitzer <[email protected]> Signed-off-by: Mikulas Patocka <[email protected]>
1 parent 487d1a9 commit 30b88ed

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/md/dm-stripe.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,9 @@ static void stripe_io_hints(struct dm_target *ti,
465465

466466
static struct target_type stripe_target = {
467467
.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,
470471
.module = THIS_MODULE,
471472
.ctr = stripe_ctr,
472473
.dtr = stripe_dtr,

0 commit comments

Comments
 (0)