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>
This commit is contained in:
parent
95eeb5f588
commit
ac61d19559
@ -1029,6 +1029,7 @@ retry:
|
|||||||
rtn = NEEDS_RETRY;
|
rtn = NEEDS_RETRY;
|
||||||
} else {
|
} else {
|
||||||
timeleft = wait_for_completion_timeout(&done, timeout);
|
timeleft = wait_for_completion_timeout(&done, timeout);
|
||||||
|
rtn = SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
shost->eh_action = NULL;
|
shost->eh_action = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user