[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20251117184343.97605-1-justintee8345@gmail.com>
Date: Mon, 17 Nov 2025 10:43:43 -0800
From: Justin Tee <justintee8345@...il.com>
To: linux-nvme@...ts.infradead.org,
linux-kernel@...r.kernel.org
Cc: jsmart2021@...il.com,
justin.tee@...adcom.com,
Justin Tee <justintee8345@...il.com>,
Daniel Wagner <wagi@...nel.org>,
Hannes Reinecke <hare@...e.de>
Subject: [PATCH 1/1] 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@...nel.org>
Cc: Hannes Reinecke <hare@...e.de>
Closes: https://lore.kernel.org/linux-nvme/20250829-nvme-fc-sync-v3-0-d69c87e63aee@kernel.org/
Signed-off-by: Justin Tee <justintee8345@...il.com>
---
drivers/nvme/host/fabrics.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nvme/host/fabrics.c b/drivers/nvme/host/fabrics.c
index 3d4d6d8e88c4..fb7765bf0cdf 100644
--- a/drivers/nvme/host/fabrics.c
+++ b/drivers/nvme/host/fabrics.c
@@ -594,7 +594,7 @@ bool nvmf_should_reconnect(struct nvme_ctrl *ctrl, int status)
if (status > 0 && (status & NVME_STATUS_DNR))
return false;
- if (status == -EKEYREJECTED)
+ if (status == -EKEYREJECTED || status == -ENOKEY)
return false;
if (ctrl->opts->max_reconnects == -1 ||
--
2.38.0
Powered by blists - more mailing lists