nvme-pci: put the admin queue in nvme_dev_remove_admin
authorChristoph Hellwig <hch@lst.de>
Tue, 8 Nov 2022 08:10:21 +0000 (09:10 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 15 Nov 2022 09:55:59 +0000 (10:55 +0100)
commit96ef1be53663a9343dffcf106e2f1b59da4b8799
tree22d1923cdaab467c566bab446d336de9ba1c6517
parent86adbf0cdb9ec6533234696c3e243184d4d0d040
nvme-pci: put the admin queue in nvme_dev_remove_admin

Once the controller is shutdown no one can access the admin queue.  Tear
it down in nvme_dev_remove_admin, which matches the flow in the other
drivers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Tested-by Gerd Bayer <gbayer@linxu.ibm.com>
drivers/nvme/host/pci.c