nvme: enable retries for authentication commands
authorHannes Reinecke <hare@suse.de>
Mon, 29 Jan 2024 06:39:48 +0000 (07:39 +0100)
committerKeith Busch <kbusch@kernel.org>
Wed, 31 Jan 2024 23:59:48 +0000 (15:59 -0800)
commit48dae46676d1acb632a3e1e14d02879d57618b5d
tree3db4032e2c293241092d4d0538e6c81ee7391cd0
parentbd2687f2e5940f6ee14bfae787b3c1f5f0574907
nvme: enable retries for authentication commands

Authentication commands might trigger a lengthy computation on the
controller or even a callout to an external entity.
In these cases the controller might return a status without the DNR
bit set, indicating that the command should be retried.
This patch enables retries for authentication commands  by setting
NVME_SUBMIT_RETRY for __nvme_submit_sync_cmd().

Reported-by: Martin George <marting@netapp.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/auth.c
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h