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

Daniel Wagner dwagner at suse.de
Fri Feb 23 05:50:29 PST 2024


On Fri, Feb 23, 2024 at 02:29:02PM +0100, Daniel Wagner wrote:
> On Fri, Feb 23, 2024 at 11:58:04AM +0100, hare at kernel.org wrote:
> > From: Hannes Reinecke <hare at suse.de>
> > 
> > Any authentication errors which are generated internally are always
> > non-retryable, so set the DNR bit to ensure they are not retried.
> 
> This still keeps nvme-fc in the retry loop. It fails with -126 which is
> -ENOKEY:
> 
> [ 2267.185691] nvme nvme0: qid 0: no key
> [ 2267.187596] nvme nvme0: qid 0: authentication setup failed
> [ 2267.188866] nvme nvme0: NVME-FC{0}: create_assoc failed, assoc_id 2a3022dff0fe0000 ret -126
> 

nvme_auth_negotiate() returns -ENOKEY. What's the idea to handle
negative return values? I though nvme_fc_reconnect_or_delete() should
stop the retry loop for for negative values too?



More information about the Linux-nvme mailing list