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 <[email protected]> Cc: Hannes Reinecke <[email protected]> Closes: https://lore.kernel.org/linux-nvme/[email protected]/ Signed-off-by: Justin Tee <[email protected]> Tested-by: Daniel Wagner <[email protected]> Reviewed-by: Daniel Wagner <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Signed-off-by: Keith Busch <[email protected]>
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)