]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nvme-fabrics: add ENOKEY to no retry criteria for authentication failures
authorJustin Tee <justintee8345@gmail.com>
Mon, 17 Nov 2025 18:43:43 +0000 (10:43 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:14:12 +0000 (10:14 +0100)
commit142b2e74186ffffc9a48fb2ce0fe0094270220be
tree86df1f60fef290b686a5de43303d825e75ebb238
parent855a444013cf311ff5e49a16255b570fe2b9b7cf
nvme-fabrics: add ENOKEY to no retry criteria for authentication failures

[ Upstream commit 13989207ee29c40501e719512e8dc90768325895 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/fabrics.c