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)
committerChristoph Hellwig <hch@lst.de>
Thu, 11 Mar 2021 10:48:35 +0000 (11:48 +0100)
commit0ec84df4953bd42c6583a555773f1d4996a061eb
treecae59b02fcd7b8e55b8b5f32fdc9e877804d023c
parentf20ef34d71abc1fc56b322aaa251f90f94320140
nvme-core: check ctrl css before setting up zns

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>
drivers/nvme/host/core.c