]> 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)
commit2455a4b77835c2c9d1c0310d50f69e6fbc1b173f
tree194cd0bb6ee0924acfe4ba9c86bd465667500ab0
parentf91b727ccf1fabe6c02dc184bb8a156f895428c8
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