]> www.infradead.org Git - users/jedix/linux-maple.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>
Tue, 20 May 2025 03:34:25 +0000 (05:34 +0200)
commitf791252b649653fe0477da79aa40c82d5bc407de
treee46d222d22649e92266eccf85c885e4f983e8a3f
parent6b868deaa1c3ad5737e59074985efccf39e7fea2
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