Commit 433b5f4d authored by Stephen Cameron's avatar Stephen Cameron Committed by James Bottomley

hpsa: decrement h->commands_outstanding in fail_all_outstanding_cmds

make tracking of outstanding commands more robust
Reviewed-by: default avatarScott Teel <scott.teel@pmcs.com>
Reviewed-by: default avatarKevin Barnett <kevin.barnett@pmcs.com>
Reviewed-by: default avatarTomas Henzl <thenzl@redhat.com>
Reviewed-by: default avatarHannes Reinecke <hare@Suse.de>
Signed-off-by: default avatarDon Brace <don.brace@pmcs.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJames Bottomley <JBottomley@Odin.com>
parent 9b5c48c2
...@@ -6892,6 +6892,7 @@ static void fail_all_outstanding_cmds(struct ctlr_info *h) ...@@ -6892,6 +6892,7 @@ static void fail_all_outstanding_cmds(struct ctlr_info *h)
if (refcount > 1) { if (refcount > 1) {
c->err_info->CommandStatus = CMD_CTLR_LOCKUP; c->err_info->CommandStatus = CMD_CTLR_LOCKUP;
finish_cmd(c); finish_cmd(c);
atomic_dec(&h->commands_outstanding);
failcount++; failcount++;
} }
cmd_free(h, c); cmd_free(h, c);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment