Skip to content

Commit 524719b

Browse files
NitinYewalekeithbusch
authored andcommitted
nvme-tcp: show hostnqn when connecting to tcp target
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@redhat.com> Reviewed-by: John Meneghini <jmeneghi@redhat.com> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Keith Busch <kbusch@kernel.org>
1 parent a90ac7b commit 524719b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/nvme/host/tcp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2753,8 +2753,8 @@ static struct nvme_ctrl *nvme_tcp_create_ctrl(struct device *dev,
27532753
if (ret)
27542754
goto out_uninit_ctrl;
27552755

2756-
dev_info(ctrl->ctrl.device, "new ctrl: NQN \"%s\", addr %pISp\n",
2757-
nvmf_ctrl_subsysnqn(&ctrl->ctrl), &ctrl->addr);
2756+
dev_info(ctrl->ctrl.device, "new ctrl: NQN \"%s\", addr %pISp, hostnqn: %s\n",
2757+
nvmf_ctrl_subsysnqn(&ctrl->ctrl), &ctrl->addr, opts->host->nqn);
27582758

27592759
mutex_lock(&nvme_tcp_ctrl_mutex);
27602760
list_add_tail(&ctrl->list, &nvme_tcp_ctrl_list);

0 commit comments

Comments
 (0)