nvme-core: check ctrl css before setting up zns
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Tue, 9 Mar 2021 04:58:21 +0000 (20:58 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Mar 2021 12:31:52 +0000 (14:31 +0200)
commitc7b3f6db97c2c3969564f270d941d12f6ddbc0eb
tree0fe750265d9dfd0191d1539376b980bb1faa2a5f
parent9083dc773d67d41d562ceb6a99a8c2f5160f90c7
nvme-core: check ctrl css before setting up zns

[ Upstream commit 0ec84df4953bd42c6583a555773f1d4996a061eb ]

Ensure multiple Command Sets are supported before starting to setup a
ZNS namespace.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
[hch: move the check around a bit]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/core.c