diff options
Diffstat (limited to 'drivers/scsi/scsi_error.c')
-rw-r--r-- | drivers/scsi/scsi_error.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index a8b610eaa0ca..106a6adbd6f1 100644 --- a/drivers/scsi/scsi_error.c +++ b/drivers/scsi/scsi_error.c | |||
@@ -1128,7 +1128,6 @@ static int scsi_eh_action(struct scsi_cmnd *scmd, int rtn) | |||
1128 | */ | 1128 | */ |
1129 | void scsi_eh_finish_cmd(struct scsi_cmnd *scmd, struct list_head *done_q) | 1129 | void scsi_eh_finish_cmd(struct scsi_cmnd *scmd, struct list_head *done_q) |
1130 | { | 1130 | { |
1131 | scmd->device->host->host_failed--; | ||
1132 | scmd->eh_eflags = 0; | 1131 | scmd->eh_eflags = 0; |
1133 | list_move_tail(&scmd->eh_entry, done_q); | 1132 | list_move_tail(&scmd->eh_entry, done_q); |
1134 | } | 1133 | } |
@@ -2227,6 +2226,9 @@ int scsi_error_handler(void *data) | |||
2227 | else | 2226 | else |
2228 | scsi_unjam_host(shost); | 2227 | scsi_unjam_host(shost); |
2229 | 2228 | ||
2229 | /* All scmds have been handled */ | ||
2230 | shost->host_failed = 0; | ||
2231 | |||
2230 | /* | 2232 | /* |
2231 | * Note - if the above fails completely, the action is to take | 2233 | * Note - if the above fails completely, the action is to take |
2232 | * individual devices offline and flush the queue of any | 2234 | * individual devices offline and flush the queue of any |