]> git.ipfire.org Git - thirdparty/linux.git/commit
nvme: fix command limits status code
authorKeith Busch <kbusch@kernel.org>
Tue, 20 May 2025 20:20:37 +0000 (13:20 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 4 Jun 2025 07:51:10 +0000 (09:51 +0200)
commit10f4a7cd724e34b7a6ff96e57ac49dc0cadececc
treeaca282bb81aa44e6b95bcb1554fcd9e32fc7b458
parenta2f4c1ae163b815dc81e3cab97c3149fdc6639e3
nvme: fix command limits status code

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>
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