]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: query namespace identifiers before adding the namespace
authorChristoph Hellwig <hch@lst.de>
Mon, 28 Sep 2020 12:07:56 +0000 (14:07 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 7 Oct 2020 05:56:19 +0000 (07:56 +0200)
commit16b3a8d135be360f2528f7e066ed0586c5328eed
tree888e16cf7a419480b4ccef3badeb8342ede88b6b
parent8c213d65c02b052de0410bdbff31e82d315184bc
nvme: query namespace identifiers before adding the namespace

Check the namespace identifier list first thing when scanning namespaces.
This keeps the code to query the CSI common between the alloc and validate
path, and helps to structure the code better for multiple command set
support.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
drivers/nvme/host/core.c