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