]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/md/dm-stripe.c
dm: support non power of two target max_io_len
[karo-tx-linux.git] / drivers / md / dm-stripe.c
index 6931bd18b615291cfd55a5af654b63ffbd4c2efc..992c9d4c3bd93f42d8b95f19919939f293cb2ede 100644 (file)
@@ -165,7 +165,10 @@ static int stripe_ctr(struct dm_target *ti, unsigned int argc, char **argv)
        else
                sc->stripes_shift = __ffs(stripes);
 
-       ti->split_io = chunk_size;
+       r = dm_set_target_max_io_len(ti, chunk_size);
+       if (r)
+               return r;
+
        ti->num_flush_requests = stripes;
        ti->num_discard_requests = stripes;