* [PATCH] dm.c : Correctly initialize bio clone-info index
@ 2002-12-27 21:54 Kevin Corry
2002-12-30 10:49 ` Joe Thornber
0 siblings, 1 reply; 2+ messages in thread
From: Kevin Corry @ 2002-12-27 21:54 UTC (permalink / raw)
To: Joe Thornber; +Cc: dm-devel, linux-kernel
Initialize the clone-info's index to the original bio's index. Required to
properly handle stacking DM devices.
--- linux-2.5.53a/drivers/md/dm.c Mon Dec 23 23:21:04 2002
+++ linux-2.5.53b/drivers/md/dm.c Fri Dec 27 14:50:29 2002
@@ -475,7 +482,7 @@
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)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-12-30 10:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-27 21:54 [PATCH] dm.c : Correctly initialize bio clone-info index Kevin Corry
2002-12-30 10:49 ` Joe Thornber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox