nvme-pci: split nvme_alloc_admin_tags
authorChristoph Hellwig <hch@lst.de>
Thu, 21 Jul 2022 06:07:14 +0000 (08:07 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 26 Jul 2022 20:04:21 +0000 (16:04 -0400)
commitce6871b29f93680d72ed459fc1eca7a384693691
tree1aa0bea62d58ad5e1e2fe8434382f7f660032886
parent187e1b4b746a825e382846dd1cf9e3343c8f5c17
nvme-pci: split nvme_alloc_admin_tags

Split nvme_alloc_admin_tags into a helper to actually allocate the
tag set, and one that just restarts the admin queue.  Add a local
variable for the tag_set to clean up the code a bit.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/host/pci.c