scsi: hpsa: correct resets on retried commands

- call scsi_done when the command completes.

Reviewed-by: Scott Benesh <scott.benesh@microsemi.com>
Reviewed-by: Scott Teel <scott.teel@microsemi.com>
Reviewed-by: Kevin Barnett <kevin.barnett@microsemi.com>
Signed-off-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
Don Brace 2017-05-04 17:51:16 -05:00 committed by Martin K. Petersen
parent 3b476aa24d
commit d2315ce6e3

View File

@ -5465,7 +5465,7 @@ static void hpsa_command_resubmit_worker(struct work_struct *work)
return hpsa_cmd_free_and_done(c->h, c, cmd); return hpsa_cmd_free_and_done(c->h, c, cmd);
} }
if (c->reset_pending) if (c->reset_pending)
return hpsa_cmd_resolve_and_free(c->h, c); return hpsa_cmd_free_and_done(c->h, c, cmd);
if (c->abort_pending) if (c->abort_pending)
return hpsa_cmd_abort_and_free(c->h, c, cmd); return hpsa_cmd_abort_and_free(c->h, c, cmd);
if (c->cmd_type == CMD_IOACCEL2) { if (c->cmd_type == CMD_IOACCEL2) {