Skip to content

Commit d2045e6

Browse files
NitinYewalekeithbusch
authored andcommitted
nvme-rdma: show hostnqn when connecting to rdma 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 524719b commit d2045e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/nvme/host/rdma.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2300,8 +2300,8 @@ static struct nvme_ctrl *nvme_rdma_create_ctrl(struct device *dev,
23002300
if (ret)
23012301
goto out_uninit_ctrl;
23022302

2303-
dev_info(ctrl->ctrl.device, "new ctrl: NQN \"%s\", addr %pISpcs\n",
2304-
nvmf_ctrl_subsysnqn(&ctrl->ctrl), &ctrl->addr);
2303+
dev_info(ctrl->ctrl.device, "new ctrl: NQN \"%s\", addr %pISpcs, hostnqn: %s\n",
2304+
nvmf_ctrl_subsysnqn(&ctrl->ctrl), &ctrl->addr, opts->host->nqn);
23052305

23062306
mutex_lock(&nvme_rdma_ctrl_mutex);
23072307
list_add_tail(&ctrl->list, &nvme_rdma_ctrl_list);

0 commit comments

Comments
 (0)