]> git.baikalelectronics.ru Git - 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)
commitc0135ad994472720c8647322d9023ddc145dfb73
treeb656dc21070fc4468bb6a5322a897dd881af06a7
parentecb49d8c66a124fcb9191cd4172dd020012a651c
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