]> git.hungrycats.org Git - linux/commit
nvme: also return I/O command effects from nvme_command_effects
authorChristoph Hellwig <hch@lst.de>
Wed, 21 Dec 2022 09:12:17 +0000 (10:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2023 11:00:44 +0000 (12:00 +0100)
commite64d23bd4716842f9b5eca9bcaaaaf37b8b24e18
treeac62048bffefc1df9a60f8f058a5c2d6e627aa34
parenta1e4026ffa0bacbaa8604a7bd249c90754f444e1
nvme: also return I/O command effects from nvme_command_effects

[ Upstream commit 831ed60c2aca2d7c517b2da22897a90224a97d27 ]

To be able to use the Commands Supported and Effects Log for allowing
unprivileged passtrough, it needs to be corretly reported for I/O
commands as well.  Return the I/O command effects from
nvme_command_effects, and also add a default list of effects for the
NVM command set.  For other command sets, the Commands Supported and
Effects log is required to be present already.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/core.c