Skip to content

Commit c3a846f

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

File tree

1 file changed

+2
-2
lines changed
  • drivers/nvme/host

1 file changed

+2
-2
lines changed

drivers/nvme/host/fc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3570,8 +3570,8 @@ nvme_fc_init_ctrl(struct device *dev, struct nvmf_ctrl_options *opts,
35703570
flush_delayed_work(&ctrl->connect_work);
35713571

35723572
dev_info(ctrl->ctrl.device,
3573-
"NVME-FC{%d}: new ctrl: NQN \"%s\"\n",
3574-
ctrl->cnum, nvmf_ctrl_subsysnqn(&ctrl->ctrl));
3573+
"NVME-FC{%d}: new ctrl: NQN \"%s\", hostnqn: %s\n",
3574+
ctrl->cnum, nvmf_ctrl_subsysnqn(&ctrl->ctrl), opts->host->nqn);
35753575

35763576
return &ctrl->ctrl;
35773577

0 commit comments

Comments
 (0)