aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-stripe.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm-stripe.c')
-rw-r--r--drivers/md/dm-stripe.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/md/dm-stripe.c b/drivers/md/dm-stripe.c
index 6931bd18b615..992c9d4c3bd9 100644
--- a/drivers/md/dm-stripe.c
+++ b/drivers/md/dm-stripe.c
@@ -165,7 +165,10 @@ static int stripe_ctr(struct dm_target *ti, unsigned int argc, char **argv)
165 else 165 else
166 sc->stripes_shift = __ffs(stripes); 166 sc->stripes_shift = __ffs(stripes);
167 167
168 ti->split_io = chunk_size; 168 r = dm_set_target_max_io_len(ti, chunk_size);
169 if (r)
170 return r;
171
169 ti->num_flush_requests = stripes; 172 ti->num_flush_requests = stripes;
170 ti->num_discard_requests = stripes; 173 ti->num_discard_requests = stripes;
171 174