]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nvme: always issue I/O Command Set specific Identify Namespace
authorCaleb Sander Mateos <csander@purestorage.com>
Fri, 27 Feb 2026 20:23:49 +0000 (13:23 -0700)
committerKeith Busch <kbusch@kernel.org>
Fri, 27 Mar 2026 14:35:04 +0000 (07:35 -0700)
commit823340b7e877b410a814177360df34810878e916
tree6144dd02a7c05a1d3fb7df604faa3309e2dae191
parentd3c04a6ea5fd7a3d81f7c80880125108df9a4cbd
nvme: always issue I/O Command Set specific Identify Namespace

Currently, the I/O Command Set specific Identify Namespace structure is
only fetched for controllers that support extended LBA formats. This is
because struct nvme_id_ns_nvm is only used by nvme_configure_pi_elbas(),
which is only called when the ELBAS bit is set in the CTRATT field of
the Identify Controller structure.

However, the I/O Command Set specific Identify Namespace structure will
soon be used in nvme_update_disk_info(), so always try to obtain it in
nvme_update_ns_info_block(). This Identify structure is first defined in
NVMe spec version 2.0, but controllers reporting older versions could
still implement it.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c