projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95eeb5f
)
scsi: set correct completion code in scsi_send_eh_cmnd()
author
Hannes Reinecke
<
[email protected]
>
Thu, 8 May 2014 06:09:56 +0000
(08:09 +0200)
committer
Christoph Hellwig
<
[email protected]
>
Mon, 19 May 2014 10:35:11 +0000
(12:35 +0200)
->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 <
[email protected]
>
Reported-by: Robert Elliott <
[email protected]
>
Cc: Stephen Cameron <
[email protected]
>
Tested-by: Robert Elliott <
[email protected]
>
Signed-off-by: Christoph Hellwig <
[email protected]
>
drivers/scsi/scsi_error.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/scsi_error.c
b/drivers/scsi/scsi_error.c
index abe51eab3dc6b97d64a0fc0322682499d53bd33f..47a1ffc4c904f8aa17269adedc401cd4ce6e5990 100644
(file)
--- a/
drivers/scsi/scsi_error.c
+++ b/
drivers/scsi/scsi_error.c
@@
-1029,6
+1029,7
@@
retry:
rtn = NEEDS_RETRY;
} else {
timeleft = wait_for_completion_timeout(&done, timeout);
+ rtn = SUCCESS;
}
shost->eh_action = NULL;