nvme: fix passthrough csi check
authorKeith Busch <kbusch@kernel.org>
Tue, 24 Jan 2023 21:29:14 +0000 (13:29 -0800)
committerChristoph Hellwig <hch@lst.de>
Wed, 25 Jan 2023 06:09:38 +0000 (07:09 +0100)
commit85eee6341abb81ac6a35062ffd5c3029eb53be6b
treeb91be53c14c709a7af4ca4f84367f67d653f0b67
parent5a5754a4997c372292e57ed631807131c63cebaf
nvme: fix passthrough csi check

The namespace head saves the Command Set Indicator enum, so use that
instead of the Command Set Selected. The two values are not the same.

Fixes: 831ed60c2aca2d ("nvme: also return I/O command effects from nvme_command_effects")
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c