OSDN Git Service

nvme-auth: don't use NVMe status codes
authorHannes Reinecke <hare@suse.de>
Tue, 13 Dec 2022 19:00:26 +0000 (20:00 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 1 Feb 2023 13:21:58 +0000 (14:21 +0100)
commitb0ef1b11d3909d8f246dd3af9c94e38880d349b0
tree7cf575b229aed92af9c634e04c5356e40390d506
parent0686fb3cc535c4c1685553c56f4efe3eeee57b09
nvme-auth: don't use NVMe status codes

NVMe status codes are part of the wire protocol, and shouldn't be
fabricated in the stack. So with this patch the authentication code
is switched over to use error codes; as a side effect authentication
failures due to internal error won't be retried anymore.
But that shouldn't have happened anyway.

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