mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 20:10:23 +09:00
nvmet: fix Identify Active Namespace ID list handling
[ Upstream commit97416f67d5] The identify command with cns set to NVME_ID_CNS_NS_ACTIVE_LIST does not depend on the command set. The execution of this command should thus not look at the csi field specified in the command. Simplify nvmet_execute_identify() to directly call nvmet_execute_identify_nslist() without the csi switch-case. Fixes:ab5d0b38c0("nvmet: add Command Set Identifier support") Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Tested-by: Chaitanya Kulkarni <kch@nvidia.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
92cf81746e
commit
42bcbc2a90
@@ -713,13 +713,8 @@ static void nvmet_execute_identify(struct nvmet_req *req)
|
||||
}
|
||||
break;
|
||||
case NVME_ID_CNS_NS_ACTIVE_LIST:
|
||||
switch (req->cmd->identify.csi) {
|
||||
case NVME_CSI_NVM:
|
||||
return nvmet_execute_identify_nslist(req);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
nvmet_execute_identify_nslist(req);
|
||||
return;
|
||||
case NVME_ID_CNS_NS_DESC_LIST:
|
||||
if (nvmet_handle_identify_desclist(req) == true)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user