summaryrefslogtreecommitdiffstats
path: root/drivers/nvme/host/rdma.c
diff options
context:
space:
mode:
authorTokunori Ikegami <ikegami.t@gmail.com>2024-05-05 17:24:59 +0200
committerKeith Busch <kbusch@kernel.org>2024-05-07 17:50:37 +0200
commit54a76c8732b265aa86030134d4af6a5a3c59fe52 (patch)
treeaf0c35f4e8366dc4924faacc565cde823584b2f3 /drivers/nvme/host/rdma.c
parentnvmet-rdma: Avoid o(n^2) loop in delete_ctrl (diff)
downloadlinux-54a76c8732b265aa86030134d4af6a5a3c59fe52.tar.xz
linux-54a76c8732b265aa86030134d4af6a5a3c59fe52.zip
nvme-rdma, nvme-tcp: include max reconnects for reconnect logging
Makes clear max reconnects translated by ctrl loss tmo and reconnect delay. Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com> Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'drivers/nvme/host/rdma.c')
-rw-r--r--drivers/nvme/host/rdma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/nvme/host/rdma.c b/drivers/nvme/host/rdma.c
index 821ab3e0fd3b..51a62b0c645a 100644
--- a/drivers/nvme/host/rdma.c
+++ b/drivers/nvme/host/rdma.c
@@ -1121,8 +1121,8 @@ static void nvme_rdma_reconnect_ctrl_work(struct work_struct *work)
return;
requeue:
- dev_info(ctrl->ctrl.device, "Failed reconnect attempt %d\n",
- ctrl->ctrl.nr_reconnects);
+ dev_info(ctrl->ctrl.device, "Failed reconnect attempt %d/%d\n",
+ ctrl->ctrl.nr_reconnects, ctrl->ctrl.opts->max_reconnects);
nvme_rdma_reconnect_or_remove(ctrl, ret);
}