nvme: remove nvme_{get,put}_ns_from_disk
authorChristoph Hellwig <hch@lst.de>
Wed, 19 May 2021 07:22:35 +0000 (09:22 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 3 Jun 2021 07:29:26 +0000 (10:29 +0300)
commitf1cf35e17ec308c0e76f55c6bccf84fff1a2d71a
tree89944dc541d179298657e35be587dbe213cfb050
parent8b4fb0f968ffe73f619c06cb4040ecaa60327098
nvme: remove nvme_{get,put}_ns_from_disk

Now that only one caller is left remove the helpers by restructuring
nvme_pr_command so that it has two helpers for sending a command of to a
given nsid using either the ns_head for multipath, or the namespace
stored in the gendisk.

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/core.c
drivers/nvme/host/nvme.h