]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
nvme: cleanup namespace identifier reporting in nvme_init_ns_head
authorChristoph Hellwig <hch@lst.de>
Wed, 25 Mar 2020 13:19:37 +0000 (14:19 +0100)
committerKeith Busch <kbusch@kernel.org>
Wed, 25 Mar 2020 19:51:56 +0000 (04:51 +0900)
commit43fcd9e1eae87c3235b8077f97bc6a286c3ae59b
treeb656dc21070fc4468bb6a5322a897dd881af06a7
parent026d2ef752f47f33efd92244b9cf6be65d2a1621
nvme: cleanup namespace identifier reporting in nvme_init_ns_head

Lift the common namespace identifier reporting between the shared
namespace and new nshead cases into common code.  This also means
one less lock is held while doing I/O.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c