]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
scsi: hpsa: correct resets on retried commands
authorDon Brace <don.brace@microsemi.com>
Thu, 4 May 2017 22:51:16 +0000 (17:51 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Jun 2017 00:48:01 +0000 (20:48 -0400)
- 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>
drivers/scsi/hpsa.c

index 53a4f34e73c20aedda402ab1fceb42b67bdce7dc..a2852daa11c239df9fb9a367305875736bc16687 100644 (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);
        }
        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)
                return hpsa_cmd_abort_and_free(c->h, c, cmd);
        if (c->cmd_type == CMD_IOACCEL2) {