OSDN Git Service

hpsa: decrement h->commands_outstanding in fail_all_outstanding_cmds
[uclinux-h8/linux.git] / drivers / scsi / hpsa.c
index ae9d9e1..d5a5a64 100644 (file)
@@ -6892,6 +6892,7 @@ static void fail_all_outstanding_cmds(struct ctlr_info *h)
                if (refcount > 1) {
                        c->err_info->CommandStatus = CMD_CTLR_LOCKUP;
                        finish_cmd(c);
+                       atomic_dec(&h->commands_outstanding);
                        failcount++;
                }
                cmd_free(h, c);