nvme-pci: split nvme_dev_add
authorChristoph Hellwig <hch@lst.de>
Thu, 21 Jul 2022 06:13:23 +0000 (08:13 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 26 Jul 2022 20:04:21 +0000 (16:04 -0400)
commit8f34758743bc3812dc9dc803999a2b605bef0b65
tree5b470edf959be57313c0e8b4525310c4c0898364
parentce6871b29f93680d72ed459fc1eca7a384693691
nvme-pci: split nvme_dev_add

Split nvme_dev_add into a helper to actually allocate the tag set, and
one that just update the number of queues.  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