diff options
author | Stephen Cameron <stephenmcameron@gmail.com> | 2015-04-23 16:32:11 +0200 |
---|---|---|
committer | James Bottomley <JBottomley@Odin.com> | 2015-05-31 20:23:26 +0200 |
commit | 433b5f4dba2307e33ea65169009965f26496b6df (patch) | |
tree | 2c931f78c135b51a006f93093237f24318eb3ac7 /drivers/scsi/hpsa.c | |
parent | hpsa: clean up aborts (diff) | |
download | linux-433b5f4dba2307e33ea65169009965f26496b6df.tar.xz linux-433b5f4dba2307e33ea65169009965f26496b6df.zip |
hpsa: decrement h->commands_outstanding in fail_all_outstanding_cmds
make tracking of outstanding commands more robust
Reviewed-by: Scott Teel <scott.teel@pmcs.com>
Reviewed-by: Kevin Barnett <kevin.barnett@pmcs.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Reviewed-by: Hannes Reinecke <hare@Suse.de>
Signed-off-by: Don Brace <don.brace@pmcs.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
Diffstat (limited to 'drivers/scsi/hpsa.c')
-rw-r--r-- | drivers/scsi/hpsa.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index ae9d9e17da37..d5a5a6413b6d 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -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); |