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:34:47 +0000 (08:34 +0100)
commitb51e3f5e86d8bff34e8c8c83fb1dc2d228173c4b
tree34bdc98620076225eb4015a963fc1daebb95db44
parentf4c8fc775fcbc9e9047b22671c55ca18f9a127d4
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