[SCSI] libosd: osd_req_read_sg, optimize the single entry case
authorBoaz Harrosh <bharrosh@panasas.com>
Sun, 23 Jan 2011 15:53:24 +0000 (17:53 +0200)
committerJames Bottomley <James.Bottomley@suse.de>
Mon, 24 Jan 2011 18:06:31 +0000 (12:06 -0600)
commit4977c82504f58d7579acabd21688183eaa8768fb
treefc455d2fe5f925b6cb1c143231c56b76befae373
parent1e34c8387380269b9d7707d625aeb9e9e92233f0
[SCSI] libosd: osd_req_read_sg, optimize the single entry case

Since sg-read is a bidi operation, it is a gain to convert
a single sg entry into a regular read. Better do this in the
generic layer then force each caller to do so.

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