[PATCHv2] nvme: authentication error are always non-retryable

Daniel Wagner dwagner at suse.de
Mon Feb 26 02:24:35 PST 2024


On Mon, Feb 26, 2024 at 09:06:28AM +0100, Hannes Reinecke wrote:
> Any authentication errors which are generated internally are always
> non-retryable, so set the DNR bit to ensure they are not retried.
> 
> Signed-off-by: Hannes Reinecke <hare at suse.de>

Tested-by: Daniel Wagner <dwagner at suse.de>
Reviewed-by: Daniel Wagner <dwagner at suse.de>

> @@ -541,7 +542,7 @@ int nvmf_connect_io_queue(struct nvme_ctrl *ctrl, u16 qid)
>  		if (result & NVME_CONNECT_AUTHREQ_ASCR) {
>  			dev_warn(ctrl->device,
>  				 "qid 0: secure concatenation is not supported\n");

Maybe also updating the warn message to "qid %u: ..." wouldn't hurt.

> -			ret = NVME_SC_AUTH_REQUIRED;
> +			ret = NVME_SC_AUTH_REQUIRED | NVME_SC_DNR;
>  			goto out_free_data;



More information about the Linux-nvme mailing list