Skip to content

Commit ac61d19

Browse files
hreineckeChristoph Hellwig
authored andcommitted
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>
1 parent 95eeb5f commit ac61d19

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/scsi/scsi_error.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,6 +1029,7 @@ static int scsi_send_eh_cmnd(struct scsi_cmnd *scmd, unsigned char *cmnd,
10291029
rtn = NEEDS_RETRY;
10301030
} else {
10311031
timeleft = wait_for_completion_timeout(&done, timeout);
1032+
rtn = SUCCESS;
10321033
}
10331034

10341035
shost->eh_action = NULL;

0 commit comments

Comments
 (0)