nvme: send Identify with CNS 06h only to I/O controllers
authorMartin George <martinus.gpy@gmail.com>
Thu, 16 Mar 2023 11:50:09 +0000 (17:20 +0530)
committerChristoph Hellwig <hch@lst.de>
Wed, 22 Mar 2023 08:17:52 +0000 (09:17 +0100)
commitdef84ab600b71ea3fcc422a876d5d0d0daa7d4f3
tree78af195cbddc09ace18577b638986d1aeb662106
parent9d2789ac9d60c049d26ef6d3005d9c94c5a559e9
nvme: send Identify with CNS 06h only to I/O controllers

Identify CNS 06h (I/O Command Set Specific Identify Controller data
structure) is supported only on i/o controllers.

But nvme_init_non_mdts_limits() currently invokes this on all
controllers.  Correct this by ensuring this is sent to I/O
controllers only.

Signed-off-by: Martin George <marting@netapp.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c