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)
commit8b7c0ff2d46dad4974e84f2363d7e0ddefaf0677
tree888e16cf7a419480b4ccef3badeb8342ede88b6b
parent3a9967ba7ace91153f9caa8e60a55c7668c7b946
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