diff options
author | Nitin U. Yewale <nyewale@redhat.com> | 2024-01-29 12:06:39 +0100 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2024-02-01 16:44:52 +0100 |
commit | c3a846fe4bf3ecbdf48e561b90fea6cc27ac6423 (patch) | |
tree | d416f930b89210f217850d4bdb08522161e5ebbd /drivers/nvme | |
parent | nvme-rdma: show hostnqn when connecting to rdma target (diff) | |
download | linux-c3a846fe4bf3ecbdf48e561b90fea6cc27ac6423.tar.xz linux-c3a846fe4bf3ecbdf48e561b90fea6cc27ac6423.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | drivers/nvme/host/fc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c index 5630d5689f28..68a5d971657b 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; |