diff options
| author | Hannes Reinecke <hare@suse.de> | 2014-05-08 02:09:56 -0400 |
|---|---|---|
| committer | Christoph Hellwig <hch@lst.de> | 2014-05-19 06:35:11 -0400 |
| commit | ac61d19559349e205dad7b5122b281419aa74a82 (patch) | |
| tree | 924a6f56c6c1e917c246ba30fc72196c12788bca | |
| parent | 95eeb5f5880cd390fd59710f64dc7b84d1e9942f (diff) | |
scsi: set correct completion code in scsi_send_eh_cmnd()
->queuecommand returns '0' for successful command submission,
so we need to set the correct SCSI midlayer return value
when calling scsi_log_completion().
Signed-off-by: Hannes Reinecke <hare@suse.de>
Reported-by: Robert Elliott <elliott@hp.com>
Cc: Stephen Cameron <scameron@beardog.cce.hp.com>
Tested-by: Robert Elliott <elliott@hp.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
| -rw-r--r-- | drivers/scsi/scsi_error.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index abe51eab3dc6..47a1ffc4c904 100644 --- a/drivers/scsi/scsi_error.c +++ b/drivers/scsi/scsi_error.c | |||
| @@ -1029,6 +1029,7 @@ retry: | |||
| 1029 | rtn = NEEDS_RETRY; | 1029 | rtn = NEEDS_RETRY; |
| 1030 | } else { | 1030 | } else { |
| 1031 | timeleft = wait_for_completion_timeout(&done, timeout); | 1031 | timeleft = wait_for_completion_timeout(&done, timeout); |
| 1032 | rtn = SUCCESS; | ||
| 1032 | } | 1033 | } |
| 1033 | 1034 | ||
| 1034 | shost->eh_action = NULL; | 1035 | shost->eh_action = NULL; |
