]> www.infradead.org Git - users/hch/misc.git/commit
nvme-auth: do not re-authenticate queues with no prior authentication
authorHannes Reinecke <hare@kernel.org>
Tue, 22 Apr 2025 09:15:56 +0000 (11:15 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 9 May 2025 05:03:42 +0000 (07:03 +0200)
commitcc37e70d4fc2bda05b0ed3688bfd137fbe8f5c6f
tree7957fe765cce76a2ab5d3b8ceb2b3413e8d3ebe6
parent532da47b22ffadfbfbf4da851b3ae0a3a3e9bc33
nvme-auth: do not re-authenticate queues with no prior authentication

When sending 'connect' the queues can figure out from the return code
whether authentication is required or not. But reauthentication doesn't
disconnect the queues, so this check is not available.  Rather we need
to check whether the queue had been authenticated initially to figure
out if we need to reauthenticate.

Signed-off-by: Hannes Reinecke <hare@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/auth.c