[SCSI] libosd: osd_req_{read,write} takes a length parameter
authorBoaz Harrosh <bharrosh@panasas.com>
Sun, 24 May 2009 17:04:26 +0000 (20:04 +0300)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Wed, 10 Jun 2009 13:59:52 +0000 (08:59 -0500)
commit62f469b596dd0aadf046a69027087c18db43734e
tree2e7fd67763b328fb47c3793e8a9d5a13ed49ea33
parent546881aea9787ed5c626ac99ab80158ea9ae0515
[SCSI] libosd: osd_req_{read,write} takes a length parameter

For supporting of chained-bios we can not inspect the first
bio only, as before. Caller shall pass the total length of the
request, ie. sum_bytes(bio-chain).

Also since the bio might be a chain we don't set it's direction
on behalf of it's callers. The bio direction should be properly
set prior to this call. So fix a couple of write users that now
need to set the bio direction properly

[In this patch I change both library code and user sites at
 exofs, to make it easy on integration. It should be submitted
 via James's scsi-misc tree.]

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
CC: Jeff Garzik <jeff@garzik.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/osd/osd_initiator.c
fs/exofs/inode.c
include/scsi/osd_initiator.h