[PATCH 2/2] nvme: add missing status values to verbose logging

Hannes Reinecke hare at suse.de
Thu Apr 28 23:08:59 PDT 2022


On 4/28/22 11:19, Max Gurtovoy wrote:
> The following status values were added: NVME_SC_INTERNAL_PATH_ERROR,
> NVME_SC_CTRL_PATH_ERROR and NVME_SC_HOST_ABORTED_CMD.
> 
> Signed-off-by: Max Gurtovoy <mgurtovoy at nvidia.com>
> ---
>   drivers/nvme/host/constants.c | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/nvme/host/constants.c b/drivers/nvme/host/constants.c
> index 6c2aa8eefb55..1dd1d78de295 100644
> --- a/drivers/nvme/host/constants.c
> +++ b/drivers/nvme/host/constants.c
> @@ -154,10 +154,13 @@ static const char * const nvme_statuses[] = {
>   	[NVME_SC_COMPARE_FAILED] = "Compare Failure",
>   	[NVME_SC_ACCESS_DENIED] = "Access Denied",
>   	[NVME_SC_UNWRITTEN_BLOCK] = "Deallocated or Unwritten Logical Block",
> +	[NVME_SC_INTERNAL_PATH_ERROR] = "Internal Pathing Error",
>   	[NVME_SC_ANA_PERSISTENT_LOSS] = "Asymmetric Access Persistent Loss",
>   	[NVME_SC_ANA_INACCESSIBLE] = "Asymmetric Access Inaccessible",
>   	[NVME_SC_ANA_TRANSITION] = "Asymmetric Access Transition",
> +	[NVME_SC_CTRL_PATH_ERROR] = "Controller Pathing Error",
>   	[NVME_SC_HOST_PATH_ERROR] = "Host Pathing Error",
> +	[NVME_SC_HOST_ABORTED_CMD] = "Host Aborted Command",
>   };
>   
>   const unsigned char *nvme_get_error_status_str(u16 status)

As mentioned, maybe merge with the first patch.
But that's merely cosmetical.

Reviewed-by: Hannes Reinecke <hare at suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                Kernel Storage Architect
hare at suse.de                              +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer



More information about the Linux-nvme mailing list