[dm-devel] [PATCH] clear seg valid when resetting bi_idx
Mike Christie
michaelc at cs.wisc.edu
Thu Mar 4 13:21:16 UTC 2004
In __end_that_request_first if the bio is partially completed
blk_recalc_rq_segments will reset the segment values. If the bio is
later remapped and resent becuase of an error, we restore bi_idx but the
segment values are left to the partially completed state causing many
fun problems when blk_rq_map_sg is called in SCSI.
The attached patch clears the BIO_SEG_VALID bit, so the segment values
are recalculated when it is resent. It was built and tested against
2.6.4-udm1.
Mike Christie
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dm-sgmnt.patch
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20040304/ac8a1874/attachment.ksh>
More information about the dm-devel
mailing list