nvmet: fix Identify Controller handling
authorDamien Le Moal <damien.lemoal@opensource.wdc.com>
Wed, 15 Mar 2023 10:59:36 +0000 (19:59 +0900)
committerChristoph Hellwig <hch@lst.de>
Thu, 13 Apr 2023 06:55:03 +0000 (08:55 +0200)
commit62904b3b333e7f3c0f879dc3513295eee5765c9f
tree2f745d8066f10b662b4ceb7c6ee09070ce739b51
parent8c098aa00118c35108f0c19bd3cdc45e11574948
nvmet: fix Identify Controller handling

The identify command with cns set to NVME_ID_CNS_CTRL does not depend on
the command set. The execution of this command should thus not look at
the csi specified in the command. Simplify nvmet_execute_identify() to
directly call nvmet_execute_identify_ctrl() without the csi switch-case.

Fixes: ab5d0b38c047 ("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>
drivers/nvme/target/admin-cmd.c