]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-pci: split nvme_dev_add
authorChristoph Hellwig <hch@lst.de>
Thu, 21 Jul 2022 06:13:23 +0000 (08:13 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Aug 2022 23:22:48 +0000 (17:22 -0600)
commit1161d1cc8295919717aea4d9d08f62b027596b73
tree194cd0bb6ee0924acfe4ba9c86bd465667500ab0
parent16e75a74fc5818105e20f08609af64cda72f12e2
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>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/pci.c