nvme-tcp: show hostnqn when connecting to tcp target
Subsystems (2)
PATCH 1/3 nvme-tcp: show hostnqn when connecting to tcp 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 <[email protected]>
--- drivers/nvme/host/tcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/nvme/host/tcp.c +2 -2
@@ -2753,8 +2753,8 @@ static struct nvme_ctrl *nvme_tcp_create_ctrl(struct device *dev,if (ret) goto out_uninit_ctrl; -dev_info (ctrl->ctrl.device,"new ctrl: NQN \"%s\", addr %pISp\n" , -nvmf_ctrl_subsysnqn (&ctrl->ctrl), &ctrl->addr); +dev_info (ctrl->ctrl.device,"new ctrl: NQN \"%s\", addr %pISp, hostnqn: %s\n" , +nvmf_ctrl_subsysnqn (&ctrl->ctrl), &ctrl->addr, opts->host->nqn);mutex_lock (&nvme_tcp_ctrl_mutex);list_add_tail (&ctrl->list, &nvme_tcp_ctrl_list);
Signature · 1 line
2.39.3
PATCH 2/3 nvme-rdma: show hostnqn when connecting to rdma target
Signed-off-by Nitin U. Yewale <[email protected]>
--- drivers/nvme/host/rdma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/nvme/host/rdma.c +2 -2
@@ -2296,8 +2296,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);
Signature · 1 line
2.39.3
PATCH 3/3 nvme-fc: show hostnqn when connecting to fc target
In reply to Nitin U. YewaleSigned-off-by Nitin U. Yewale <[email protected]>
--- drivers/nvme/host/fc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/nvme/host/fc.c +2 -2
@@ -3575,8 +3575,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;
Signature · 1 line
2.39.3
Quoted 5 lines · Nitin U. Yewale
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 <[email protected]>---
overly long commit line ..
-ck