Commit f338ca08 authored by Joe Thornber's avatar Joe Thornber Committed by Trond Myklebust

[PATCH] dm: Correct clone info initialisation

Initialize the clone-info's index to the original bio's index.
Required to properly handle stacking DM devices. [Kevin Corry]
parent d7002d66
......@@ -475,7 +475,7 @@ static void __split_bio(struct mapped_device *md, struct bio *bio)
ci.io->md = md;
ci.sector = bio->bi_sector;
ci.sector_count = bio_sectors(bio);
ci.idx = 0;
ci.idx = bio->bi_idx;
atomic_inc(&md->pending);
while (ci.sector_count)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment