nvme-pci: Free tagset if no IO queues
authorKeith Busch <kbusch@kernel.org>
Thu, 5 Sep 2019 13:52:33 +0000 (07:52 -0600)
committerKeith Busch <kbusch@kernel.org>
Mon, 14 Oct 2019 14:21:38 +0000 (23:21 +0900)
commit770597ecb2075390c01c425b8b1f551347f1bd70
tree44cfb1eb284096dbcd083ea8b8d4c4523c890e42
parent3a8ecc935efabdad106b5e06d07b150c394b4465
nvme-pci: Free tagset if no IO queues

If a controller becomes degraded after a reset, we will not be able to
perform any IO. We currently teardown previously created request
queues and namespaces, but we had kept the unusable tagset. Free
it after all queues using it have been released.

Tested-by: Edmund Nadolski <edmund.nadolski@intel.com>
Reviewed-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/pci.c