diff options
author | Nitin U. Yewale <nyewale@redhat.com> | 2024-01-29 16:36:38 +0530 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2024-02-01 07:44:52 -0800 |
commit | d2045e6a4e2f3bcb3a2dab6684f8fbc95239d566 (patch) | |
tree | 5cffcb56493cae4ed2f712bafe86550073ce15a1 /drivers/nvme | |
parent | 524719b4c60dc5c5edff0cdfd715b4e2d6c16ede (diff) | |
download | linux-d2045e6a4e2f3bcb3a2dab6684f8fbc95239d566.tar.gz linux-d2045e6a4e2f3bcb3a2dab6684f8fbc95239d566.tar.bz2 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')
-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); |