Skip to content

Commit 1398920

Browse files
Justin Teekeithbusch
authored andcommitted
nvme-fabrics: add ENOKEY to no retry criteria for authentication failures
With authentication, in addition to EKEYREJECTED there is also no point in retrying reconnects when status is ENOKEY. Thus, add -ENOKEY as another criteria to determine when to stop retries. Cc: Daniel Wagner <wagi@kernel.org> Cc: Hannes Reinecke <hare@suse.de> Closes: https://lore.kernel.org/linux-nvme/20250829-nvme-fc-sync-v3-0-d69c87e63aee@kernel.org/ Signed-off-by: Justin Tee <justintee8345@gmail.com> Tested-by: Daniel Wagner <wagi@kernel.org> Reviewed-by: Daniel Wagner <wagi@kernel.org> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Keith Busch <kbusch@kernel.org>
1 parent bb9f4cc commit 1398920

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/nvme/host/fabrics.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ bool nvmf_should_reconnect(struct nvme_ctrl *ctrl, int status)
592592
if (status > 0 && (status & NVME_STATUS_DNR))
593593
return false;
594594

595-
if (status == -EKEYREJECTED)
595+
if (status == -EKEYREJECTED || status == -ENOKEY)
596596
return false;
597597

598598
if (ctrl->opts->max_reconnects == -1 ||

0 commit comments

Comments
 (0)