nvme: fix passthrough csi check
authorKeith Busch <kbusch@kernel.org>
Tue, 24 Jan 2023 21:29:14 +0000 (13:29 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Feb 2023 07:27:28 +0000 (08:27 +0100)
commit071a8392869fb5a30bbfaf0096d0b4388781a385
tree1546a96b1f50a770746b07cd252735383103d66a
parent614471b7f7cd28a2c96ab9c90b37471c82258ffb
nvme: fix passthrough csi check

[ Upstream commit 85eee6341abb81ac6a35062ffd5c3029eb53be6b ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/core.c