]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd1e08c344e09cd0e9b28bf302ee4524b1b355a82
tree44cfb1eb284096dbcd083ea8b8d4c4523c890e42
parentb3e060af293acc4152b2bd4c48c35fb8942aa93b
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