diff mbox series

[V3,4/9] nvmet: add NVME_CSI_ZNS in ns-desc for zbdev

Message ID 20201201041416.16293-5-chaitanya.kulkarni@wdc.com (mailing list archive)
State New, archived
Headers show
Series nvmet: add ZBD backend support | expand

Commit Message

Chaitanya Kulkarni Dec. 1, 2020, 4:14 a.m. UTC
When discovering the ZNS, the host-side looks for the NVME_CSI_ZNS
value in the ns-desc. Update the nvmet_execute_identify_desclist()
such that it can now update the ns-desc with NVME_CSI_ZNS if bdev is

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
 drivers/nvme/target/admin-cmd.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series


diff --git a/drivers/nvme/target/admin-cmd.c b/drivers/nvme/target/admin-cmd.c
index c64b40c631e0..d4fc1bb1a318 100644
--- a/drivers/nvme/target/admin-cmd.c
+++ b/drivers/nvme/target/admin-cmd.c
@@ -628,6 +628,10 @@  static void nvmet_execute_identify_desclist(struct nvmet_req *req)
 			goto out;
+	status = nvmet_process_zns_cis(req, &off);
+	if (status)
+		goto out;
 	if (sg_zero_buffer(req->sg, req->sg_cnt, NVME_IDENTIFY_DATA_SIZE - off,
 			off) != NVME_IDENTIFY_DATA_SIZE - off)