[SCSI] libosd: Let _osd_req_finalize_data_integrity receive number of out_bytes
authorBoaz Harrosh <bharrosh@panasas.com>
Sun, 24 May 2009 17:04:00 +0000 (20:04 +0300)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Wed, 10 Jun 2009 13:58:20 +0000 (08:58 -0500)
commit546881aea9787ed5c626ac99ab80158ea9ae0515
tree1fd837f6bd53d69e257a659183d3387b7ace6654
parent0e35afbc8b054e04a35faa796c72abb3b82bd33b
[SCSI] libosd: Let _osd_req_finalize_data_integrity receive number of out_bytes

_osd_req_finalize_data_integrity was trying to deduce the number of
out_bytes from passed osd_request->out.bio. This is wrong when
the bio is chained. The caller of _osd_req_finalize_data_integrity
has more ready available information and should just pass it.

Also in the light of future support for CDB-continuation segment this is
a better solution.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/osd/osd_initiator.c