]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nvme: fix command limits status code
authorKeith Busch <kbusch@kernel.org>
Tue, 20 May 2025 20:20:37 +0000 (13:20 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2025 13:32:18 +0000 (15:32 +0200)
commit8cb645117aabaf484e3fc5562437b991a52b8df4
tree58be26388341dd791d55b6b91fc42c7816be534c
parent0cffc6e40d5d33524b459c17fdf9ff03f0296a71
nvme: fix command limits status code

[ Upstream commit 10f4a7cd724e34b7a6ff96e57ac49dc0cadececc ]

The command specific status code, 0x183, was introduced in the NVMe 2.0
specification defined to "Command Size Limits Exceeded" and only ever
applied to DSM and Copy commands.  Fix the name and, remove the
incorrect translation to error codes and special treatment in the
target code for it.

Fixes: 3b7c33b28a44d4 ("nvme.h: add Write Zeroes definitions")
Cc: Chaitanya Kulkarni <chaitanyak@nvidia.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/constants.c
drivers/nvme/host/core.c
drivers/nvme/host/pr.c
drivers/nvme/target/core.c
drivers/nvme/target/io-cmd-bdev.c
include/linux/nvme.h