All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nvme-fc: Add message when creating new controller
@ 2019-05-28 18:24 James Smart
  2019-05-28 21:18 ` Chaitanya Kulkarni
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: James Smart @ 2019-05-28 18:24 UTC (permalink / raw)


When looking at console messages to troubleshoot, there are one
maybe two messages before creation of the controller is complete.
However, a lot of io takes place to reach that point. It's unclear
when things have started.

Add a message when the controller is first attempting to be
connecting to. Thus we know what controller and its NQN is being
put into place for any subsequent success or failure messages.

Signed-off-by: James Smart <jsmart2021 at gmail.com>
---
 drivers/nvme/host/fc.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c
index c17c887f2148..5c9b69ee2c1f 100644
--- a/drivers/nvme/host/fc.c
+++ b/drivers/nvme/host/fc.c
@@ -3129,6 +3129,10 @@ nvme_fc_init_ctrl(struct device *dev, struct nvmf_ctrl_options *opts,
 
 	nvme_get_ctrl(&ctrl->ctrl);
 
+	dev_info(ctrl->ctrl.device,
+		"NVME-FC{%d}: creating new ctrl: NQN \"%s\"\n",
+		ctrl->cnum, ctrl->ctrl.opts->subsysnqn);
+
 	if (!queue_delayed_work(nvme_wq, &ctrl->connect_work, 0)) {
 		nvme_put_ctrl(&ctrl->ctrl);
 		dev_err(ctrl->ctrl.device,
-- 
2.13.7

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-05-29 22:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-28 18:24 [PATCH] nvme-fc: Add message when creating new controller James Smart
2019-05-28 21:18 ` Chaitanya Kulkarni
2019-05-28 23:37 ` Arun Easi
2019-05-29  0:13   ` James Smart
2019-05-29  0:29     ` [EXT] " Arun Easi
2019-05-29  0:50     ` John Donnelly
2019-05-29 22:24 ` James Smart

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.