aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNitin U. Yewale <nyewale@redhat.com>2024-01-29 16:36:39 +0530
committerKeith Busch <kbusch@kernel.org>2024-02-01 07:44:52 -0800
commitc3a846fe4bf3ecbdf48e561b90fea6cc27ac6423 (patch)
treed416f930b89210f217850d4bdb08522161e5ebbd
parentd2045e6a4e2f3bcb3a2dab6684f8fbc95239d566 (diff)
downloadlinux-c3a846fe4bf3ecbdf48e561b90fea6cc27ac6423.tar.gz
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>
-rw-r--r--drivers/nvme/host/fc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c
index 5630d5689f28a8..68a5d971657bb5 100644
--- a/drivers/nvme/host/fc.c
+++ b/drivers/nvme/host/fc.c
@@ -3570,8 +3570,8 @@ nvme_fc_init_ctrl(struct device *dev, struct nvmf_ctrl_options *opts,
flush_delayed_work(&ctrl->connect_work);
dev_info(ctrl->ctrl.device,
- "NVME-FC{%d}: new ctrl: NQN \"%s\"\n",
- ctrl->cnum, nvmf_ctrl_subsysnqn(&ctrl->ctrl));
+ "NVME-FC{%d}: new ctrl: NQN \"%s\", hostnqn: %s\n",
+ ctrl->cnum, nvmf_ctrl_subsysnqn(&ctrl->ctrl), opts->host->nqn);
return &ctrl->ctrl;