[PATCHv2 0/2] nvme: honor DNR status for authentication
Hannes Reinecke
hare at suse.de
Tue Aug 30 05:49:23 PDT 2022
Hi all,
when sending authentication commands we should be checking the DNR bit
in the cqe status to figure out if a command should be retried.
So the first patch will evaluate the DNR bit during _nvme_submit_sync_cmd()
and initiate a retry, and the second patch will set the DNR bit in
the nvme authentication code such that we don't attempt to retry the
'connect' operation.
I have opened pull request #100 for blktests to validate this behaviour.
As usual, comments and reviews are welcome.
Hannes Reinecke (2):
nvme-auth: retry command if DNR bit is not set
nvme-auth: set the DNR bit if authentication failed
drivers/nvme/host/auth.c | 22 +++++++++++-----------
drivers/nvme/host/core.c | 20 ++++++++++++++++++--
drivers/nvme/host/fabrics.c | 4 ++--
include/linux/blk-mq.h | 2 ++
4 files changed, 33 insertions(+), 15 deletions(-)
--
2.35.3
More information about the Linux-nvme
mailing list