diff options
author | Boaz Harrosh <bharrosh@panasas.com> | 2007-10-08 10:35:19 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-10-12 14:54:51 -0400 |
commit | 55db6c1b8ed52bfc876e87971de8c67c42f36909 (patch) | |
tree | 3acfaf8a15c608d7744b826ff081445cc332c0be /include/scsi/scsi_host.h | |
parent | 2ca482302f2080e6861eaf753051ac35b6b411ad (diff) |
[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>
Diffstat (limited to 'include/scsi/scsi_host.h')
0 files changed, 0 insertions, 0 deletions