[PATCHv2 1/3] nvme-tcp: show hostnqn when connecting to tcp target
John Meneghini
jmeneghi at redhat.com
Mon Jan 29 07:31:51 PST 2024
Reviewed-by: John Meneghini <jmeneghi at redhat.com>
On 1/29/24 06:06, Nitin U. Yewale wrote:
> Log hostnqn when connecting to nvme target.
> As hostnqn could be changed, logging this information
> in syslog at appropriate time may help in troubleshooting.
>
> Signed-off-by: Nitin U. Yewale <nyewale at redhat.com>
> ---
> drivers/nvme/host/tcp.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/nvme/host/tcp.c b/drivers/nvme/host/tcp.c
> index d058d990532b..5eb53c2566d8 100644
> --- a/drivers/nvme/host/tcp.c
> +++ b/drivers/nvme/host/tcp.c
> @@ -2753,8 +2753,8 @@ static struct nvme_ctrl *nvme_tcp_create_ctrl(struct device *dev,
> if (ret)
> goto out_uninit_ctrl;
>
> - dev_info(ctrl->ctrl.device, "new ctrl: NQN \"%s\", addr %pISp\n",
> - nvmf_ctrl_subsysnqn(&ctrl->ctrl), &ctrl->addr);
> + dev_info(ctrl->ctrl.device, "new ctrl: NQN \"%s\", addr %pISp, hostnqn: %s\n",
> + nvmf_ctrl_subsysnqn(&ctrl->ctrl), &ctrl->addr, opts->host->nqn);
>
> mutex_lock(&nvme_tcp_ctrl_mutex);
> list_add_tail(&ctrl->list, &nvme_tcp_ctrl_list);
More information about the Linux-nvme
mailing list