]> git.karo-electronics.de Git - linux-beck.git/commit
[SCSI] scsi_error: code cleanup before refactoring of scsi_send_eh_cmnd()
authorBoaz Harrosh <bharrosh@panasas.com>
Mon, 8 Oct 2007 14:35:19 +0000 (16:35 +0200)
committerJames Bottomley <jejb@mulgrave.localdomain>
Fri, 12 Oct 2007 18:54:51 +0000 (14:54 -0400)
commit55db6c1b8ed52bfc876e87971de8c67c42f36909
tree3acfaf8a15c608d7744b826ff081445cc332c0be
parent2ca482302f2080e6861eaf753051ac35b6b411ad
[SCSI] scsi_error: code cleanup before refactoring of scsi_send_eh_cmnd()

  - regrouped variables for easier reviewing of next patch
  - Support of cmnd==NULL in call to scsi_send_eh_cmnd()
  - In the @sense_bytes case set transfer size to the minimum
    size of sense_buffer and passed @sense_bytes. cmnd[4] is
    set accordingly.
  - REQUEST_SENSE is set into cmnd[0] so if @sense_bytes is
    not Zero passed @cmnd should be NULL.
  - Also save/restore resid of failed command.
  - Adjust caller

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