All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] nvme-fc: Add message when creating new association
@ 2019-05-29 22:25 James Smart
  2019-05-29 22:30 ` Chaitanya Kulkarni
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: James Smart @ 2019-05-29 22:25 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 attempting to create a new
association. Thus we know what controller, between what host and
remote port, and what NQN is being put into place for any
subsequent success or failure messages.

Signed-off-by: James Smart <jsmart2021 at gmail.com>

--
v2:
 Moved message to create association so displayed at initial
  creation as well as at each reconnect
 Changed message to additionally print host port wwpn and target port
  wwpn.
---
 drivers/nvme/host/fc.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c
index c17c887f2148..bd1be8aa2d65 100644
--- a/drivers/nvme/host/fc.c
+++ b/drivers/nvme/host/fc.c
@@ -2607,6 +2607,12 @@ nvme_fc_create_association(struct nvme_fc_ctrl *ctrl)
 	if (nvme_fc_ctlr_active_on_rport(ctrl))
 		return -ENOTUNIQ;
 
+	dev_info(ctrl->ctrl.device,
+		"NVME-FC{%d}: create association : host wwpn 0x%016llx "
+		" rport wwpn 0x%016llx: NQN \"%s\"\n",
+		ctrl->cnum, ctrl->lport->localport.port_name,
+		ctrl->rport->remoteport.port_name, ctrl->ctrl.opts->subsysnqn);
+
 	/*
 	 * Create the admin queue
 	 */
-- 
2.13.7

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

* [PATCH v2] nvme-fc: Add message when creating new association
  2019-05-29 22:25 [PATCH v2] nvme-fc: Add message when creating new association James Smart
@ 2019-05-29 22:30 ` Chaitanya Kulkarni
  2019-05-29 22:48 ` Arun Easi
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Chaitanya Kulkarni @ 2019-05-29 22:30 UTC (permalink / raw)


Looks good.

Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni at wdc.com>

On 05/29/2019 03:25 PM, James Smart wrote:
> 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 attempting to create a new
> association. Thus we know what controller, between what host and
> remote port, and what NQN is being put into place for any
> subsequent success or failure messages.
>
> Signed-off-by: James Smart <jsmart2021 at gmail.com>
>
> --
> v2:
>   Moved message to create association so displayed at initial
>    creation as well as at each reconnect
>   Changed message to additionally print host port wwpn and target port
>    wwpn.
> ---
>   drivers/nvme/host/fc.c | 6 ++++++
>   1 file changed, 6 insertions(+)
>
> diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c
> index c17c887f2148..bd1be8aa2d65 100644
> --- a/drivers/nvme/host/fc.c
> +++ b/drivers/nvme/host/fc.c
> @@ -2607,6 +2607,12 @@ nvme_fc_create_association(struct nvme_fc_ctrl *ctrl)
>   	if (nvme_fc_ctlr_active_on_rport(ctrl))
>   		return -ENOTUNIQ;
>
> +	dev_info(ctrl->ctrl.device,
> +		"NVME-FC{%d}: create association : host wwpn 0x%016llx "
> +		" rport wwpn 0x%016llx: NQN \"%s\"\n",
> +		ctrl->cnum, ctrl->lport->localport.port_name,
> +		ctrl->rport->remoteport.port_name, ctrl->ctrl.opts->subsysnqn);
> +
>   	/*
>   	 * Create the admin queue
>   	 */
>

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

* [PATCH v2] nvme-fc: Add message when creating new association
  2019-05-29 22:25 [PATCH v2] nvme-fc: Add message when creating new association James Smart
  2019-05-29 22:30 ` Chaitanya Kulkarni
@ 2019-05-29 22:48 ` Arun Easi
  2019-05-29 22:51 ` Giridhar Malavali
  2019-05-30  1:08 ` Sagi Grimberg
  3 siblings, 0 replies; 5+ messages in thread
From: Arun Easi @ 2019-05-29 22:48 UTC (permalink / raw)


On Wed, 29 May 2019, 3:25pm, James Smart wrote:

> 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 attempting to create a new
> association. Thus we know what controller, between what host and
> remote port, and what NQN is being put into place for any
> subsequent success or failure messages.
> 
> Signed-off-by: James Smart <jsmart2021 at gmail.com>
> 
> --
> v2:
>  Moved message to create association so displayed at initial
>   creation as well as at each reconnect
>  Changed message to additionally print host port wwpn and target port
>   wwpn.
> ---
>  drivers/nvme/host/fc.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c
> index c17c887f2148..bd1be8aa2d65 100644
> --- a/drivers/nvme/host/fc.c
> +++ b/drivers/nvme/host/fc.c
> @@ -2607,6 +2607,12 @@ nvme_fc_create_association(struct nvme_fc_ctrl *ctrl)
>  	if (nvme_fc_ctlr_active_on_rport(ctrl))
>  		return -ENOTUNIQ;
>  
> +	dev_info(ctrl->ctrl.device,
> +		"NVME-FC{%d}: create association : host wwpn 0x%016llx "
> +		" rport wwpn 0x%016llx: NQN \"%s\"\n",
> +		ctrl->cnum, ctrl->lport->localport.port_name,
> +		ctrl->rport->remoteport.port_name, ctrl->ctrl.opts->subsysnqn);
> +
>  	/*
>  	 * Create the admin queue
>  	 */
> 

Looks good. Thanks!

-- arun

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

* [PATCH v2] nvme-fc: Add message when creating new association
  2019-05-29 22:25 [PATCH v2] nvme-fc: Add message when creating new association James Smart
  2019-05-29 22:30 ` Chaitanya Kulkarni
  2019-05-29 22:48 ` Arun Easi
@ 2019-05-29 22:51 ` Giridhar Malavali
  2019-05-30  1:08 ` Sagi Grimberg
  3 siblings, 0 replies; 5+ messages in thread
From: Giridhar Malavali @ 2019-05-29 22:51 UTC (permalink / raw)


Looks good.

Reviewed-by: Giridhar Malavali <gmalavali at marvell.com>

?On 5/29/19, 3:25 PM, "Linux-nvme on behalf of James Smart" <linux-nvme-bounces@lists.infradead.org on behalf of jsmart2021@gmail.com> wrote:

    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 attempting to create a new
    association. Thus we know what controller, between what host and
    remote port, and what NQN is being put into place for any
    subsequent success or failure messages.
    
    Signed-off-by: James Smart <jsmart2021 at gmail.com>
    
    --
    v2:
     Moved message to create association so displayed at initial
      creation as well as at each reconnect
     Changed message to additionally print host port wwpn and target port
      wwpn.
    ---
     drivers/nvme/host/fc.c | 6 ++++++
     1 file changed, 6 insertions(+)
    
    diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c
    index c17c887f2148..bd1be8aa2d65 100644
    --- a/drivers/nvme/host/fc.c
    +++ b/drivers/nvme/host/fc.c
    @@ -2607,6 +2607,12 @@ nvme_fc_create_association(struct nvme_fc_ctrl *ctrl)
     	if (nvme_fc_ctlr_active_on_rport(ctrl))
     		return -ENOTUNIQ;
     
    +	dev_info(ctrl->ctrl.device,
    +		"NVME-FC{%d}: create association : host wwpn 0x%016llx "
    +		" rport wwpn 0x%016llx: NQN \"%s\"\n",
    +		ctrl->cnum, ctrl->lport->localport.port_name,
    +		ctrl->rport->remoteport.port_name, ctrl->ctrl.opts->subsysnqn);
    +
     	/*
     	 * Create the admin queue
     	 */
    -- 
    2.13.7
    
    
    _______________________________________________
    Linux-nvme mailing list
    Linux-nvme at lists.infradead.org
    http://lists.infradead.org/mailman/listinfo/linux-nvme
    

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

* [PATCH v2] nvme-fc: Add message when creating new association
  2019-05-29 22:25 [PATCH v2] nvme-fc: Add message when creating new association James Smart
                   ` (2 preceding siblings ...)
  2019-05-29 22:51 ` Giridhar Malavali
@ 2019-05-30  1:08 ` Sagi Grimberg
  3 siblings, 0 replies; 5+ messages in thread
From: Sagi Grimberg @ 2019-05-30  1:08 UTC (permalink / raw)


Reviewed-by: Sagi Grimberg <sagi at grimberg.me>

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

end of thread, other threads:[~2019-05-30  1:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-29 22:25 [PATCH v2] nvme-fc: Add message when creating new association James Smart
2019-05-29 22:30 ` Chaitanya Kulkarni
2019-05-29 22:48 ` Arun Easi
2019-05-29 22:51 ` Giridhar Malavali
2019-05-30  1:08 ` Sagi Grimberg

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.