]> www.infradead.org Git - nvme.git/commit
nvme: enhance cns version checking
authorKeith Busch <kbusch@kernel.org>
Thu, 17 Oct 2024 17:45:24 +0000 (10:45 -0700)
committerKeith Busch <kbusch@kernel.org>
Tue, 22 Oct 2024 16:11:03 +0000 (09:11 -0700)
commitf54f0d0e2b1f74de85ff02013fa4886e4154aca5
tree93057d37b212280262f22fe409638d591660076f
parent49c234b50a437eb827832b61cd662e9aa382f31a
nvme: enhance cns version checking

The number of CNS bits in the command is specific to the nvme spec
version compliance. The existing check is not sufficient for possible
CNS values the driver uses that may create confusion between host and
device, so enhance the check to consider the version and desired CNS
value.

Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c