[PATCH] nvme-rdma, nvme-tcp: include max reconnects for failed reconnect logging

Sagi Grimberg sagi at grimberg.me
Sun May 5 06:46:48 PDT 2024


>   requeue:
> -	dev_info(ctrl->ctrl.device, "Failed reconnect attempt %d\n",
> -			ctrl->ctrl.nr_reconnects);
> +	dev_info(ctrl->ctrl.device, "Failed reconnect attempt %d of %d\n",
> +		 ctrl->ctrl.nr_reconnects, ctrl->ctrl.opts->max_reconnects);

How about we do:
"Failed reconnect attempt %d/%d\n"

And the same for the successful reconnect:
"Successfully reconnected (attempt %d/%d)\n"



More information about the Linux-nvme mailing list