[SCSI] gdth: !use_sg cleanup and use of scsi accessors
authorBoaz Harrosh <bharrosh@panasas.com>
Tue, 2 Oct 2007 21:18:03 +0000 (23:18 +0200)
committerJames Bottomley <jejb@mulgrave.localdomain>
Fri, 12 Oct 2007 18:56:13 +0000 (14:56 -0400)
commit3892d88ae6fb186ff6205f764213b556d70800b0
tree5435ca13a3d70569582887813a92f49a0ac7ca7c
parentf842b64e0ffbcc9ce48a3bf799d0b005094107c1
[SCSI] gdth: !use_sg cleanup and use of scsi accessors

gdth_execute() will issue an internal, none scsi-standard commands
onto __gdth_queuecommand(). Since it is not recommended to set
struct scsi_cmnd IO members in llds, gdth now uses internal IO
members for IO. In the case of gdth_execute() these members will be
set properly. In case the command was issued from scsi-ml
(by gdth_queuecommand) they will be set from scsi IO accessors.

  * define gdth IO accessors and use them throughout the driver.
  * use an sg-of-one in gdth_execute() and fix gdth_special_cmd()
    accordingly.
  * Clean the not use_sg code path and company

Signed-off-by Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/gdth.c
drivers/scsi/gdth.h