mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 01:51:34 +00:00
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>
This commit is contained in:
parent
9b5c48c28f
commit
433b5f4dba
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user