Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);