File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -701,6 +701,20 @@ static void nvmet_execute_identify_ctrl_nvm(struct nvmet_req *req)
701
701
nvmet_zero_sgl (req , 0 , sizeof (struct nvme_id_ctrl_nvm )));
702
702
}
703
703
704
+ static void nvme_execute_identify_ns_nvm (struct nvmet_req * req )
705
+ {
706
+ u16 status ;
707
+
708
+ status = nvmet_req_find_ns (req );
709
+ if (status )
710
+ goto out ;
711
+
712
+ status = nvmet_copy_to_sgl (req , 0 , ZERO_PAGE (0 ),
713
+ NVME_IDENTIFY_DATA_SIZE );
714
+ out :
715
+ nvmet_req_complete (req , status );
716
+ }
717
+
704
718
static void nvmet_execute_identify (struct nvmet_req * req )
705
719
{
706
720
if (!nvmet_check_transfer_len (req , NVME_IDENTIFY_DATA_SIZE ))
@@ -722,8 +736,8 @@ static void nvmet_execute_identify(struct nvmet_req *req)
722
736
case NVME_ID_CNS_CS_NS :
723
737
switch (req -> cmd -> identify .csi ) {
724
738
case NVME_CSI_NVM :
725
- /* Not supported */
726
- break ;
739
+ nvme_execute_identify_ns_nvm ( req );
740
+ return ;
727
741
case NVME_CSI_ZNS :
728
742
if (IS_ENABLED (CONFIG_BLK_DEV_ZONED )) {
729
743
nvmet_execute_identify_ns_zns (req );
You can’t perform that action at this time.
0 commit comments