[SCSI] saved and restore result for timed out commands
authorPatrick Mansfield <patmans@us.ibm.com>
Tue, 17 May 2005 00:42:15 +0000 (17:42 -0700)
committerJames Bottomley <jejb@mulgrave.(none)>
Fri, 20 May 2005 20:47:52 +0000 (15:47 -0500)
commit793698ce28e20f4736250a9766270368beae5668
tree10792e002a1a8562945c3b0ad855deca95abb70c
parentad34ea2cc3845ef4dcd7d12fb0fa8484734bd672
[SCSI] saved and restore result for timed out commands

Save and restore the scmd->result, so that timed out commands do not
return the result of the TEST UNIT READY or the start/stop commands. Code
is already in place to save and restore the result for the request sense
case.

The previous version of this patch erroneously removed the "if" check,
instead add a comment as to why the "if" is needed.

Signed-off-by: Patrick Mansfield <patmans@us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_error.c