Commit 54a76c87 authored by Tokunori Ikegami's avatar Tokunori Ikegami Committed by Keith Busch

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: default avatarTokunori Ikegami <ikegami.t@gmail.com>
Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
parent c51a22e6
...@@ -1121,8 +1121,8 @@ static void nvme_rdma_reconnect_ctrl_work(struct work_struct *work) ...@@ -1121,8 +1121,8 @@ static void nvme_rdma_reconnect_ctrl_work(struct work_struct *work)
return; return;
requeue: requeue:
dev_info(ctrl->ctrl.device, "Failed reconnect attempt %d\n", dev_info(ctrl->ctrl.device, "Failed reconnect attempt %d/%d\n",
ctrl->ctrl.nr_reconnects); ctrl->ctrl.nr_reconnects, ctrl->ctrl.opts->max_reconnects);
nvme_rdma_reconnect_or_remove(ctrl, ret); nvme_rdma_reconnect_or_remove(ctrl, ret);
} }
......
...@@ -2262,16 +2262,16 @@ static void nvme_tcp_reconnect_ctrl_work(struct work_struct *work) ...@@ -2262,16 +2262,16 @@ static void nvme_tcp_reconnect_ctrl_work(struct work_struct *work)
if (ret) if (ret)
goto requeue; goto requeue;
dev_info(ctrl->device, "Successfully reconnected (%d attempt)\n", dev_info(ctrl->device, "Successfully reconnected (attempt %d/%d)\n",
ctrl->nr_reconnects); ctrl->nr_reconnects, ctrl->opts->max_reconnects);
ctrl->nr_reconnects = 0; ctrl->nr_reconnects = 0;
return; return;
requeue: requeue:
dev_info(ctrl->device, "Failed reconnect attempt %d\n", dev_info(ctrl->device, "Failed reconnect attempt %d/%d\n",
ctrl->nr_reconnects); ctrl->nr_reconnects, ctrl->opts->max_reconnects);
nvme_tcp_reconnect_or_remove(ctrl, ret); nvme_tcp_reconnect_or_remove(ctrl, ret);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment