diff options
author | Nitin U. Yewale <nyewale@redhat.com> | 2024-01-29 12:06:38 +0100 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2024-02-01 16:44:52 +0100 |
commit | d2045e6a4e2f3bcb3a2dab6684f8fbc95239d566 (patch) | |
tree | 5cffcb56493cae4ed2f712bafe86550073ce15a1 /drivers/nvme/host | |
parent | nvme-tcp: show hostnqn when connecting to tcp target (diff) | |
download | linux-d2045e6a4e2f3bcb3a2dab6684f8fbc95239d566.tar.xz linux-d2045e6a4e2f3bcb3a2dab6684f8fbc95239d566.zip |
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>
Diffstat (limited to 'drivers/nvme/host')
-rw-r--r-- | drivers/nvme/host/rdma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/nvme/host/rdma.c b/drivers/nvme/host/rdma.c index 6adf2c19a712..20fdd40b1879 100644 --- a/drivers/nvme/host/rdma.c +++ b/drivers/nvme/host/rdma.c @@ -2300,8 +2300,8 @@ static struct nvme_ctrl *nvme_rdma_create_ctrl(struct device *dev, if (ret) goto out_uninit_ctrl; - dev_info(ctrl->ctrl.device, "new ctrl: NQN \"%s\", addr %pISpcs\n", - nvmf_ctrl_subsysnqn(&ctrl->ctrl), &ctrl->addr); + dev_info(ctrl->ctrl.device, "new ctrl: NQN \"%s\", addr %pISpcs, hostnqn: %s\n", + nvmf_ctrl_subsysnqn(&ctrl->ctrl), &ctrl->addr, opts->host->nqn); mutex_lock(&nvme_rdma_ctrl_mutex); list_add_tail(&ctrl->list, &nvme_rdma_ctrl_list); |