[PATCHv2 3/3] nvme-fc: show hostnqn when connecting to fc target

John Meneghini jmeneghi at redhat.com
Mon Jan 29 07:33:15 PST 2024


Reviewed-by: John Meneghini <jmeneghi at redhat.com>

On 1/29/24 06:06, Nitin U. Yewale wrote:
> 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 at redhat.com>
> ---
>   drivers/nvme/host/fc.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c
> index 16847a316421..7ac565b0f13b 100644
> --- a/drivers/nvme/host/fc.c
> +++ b/drivers/nvme/host/fc.c
> @@ -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;
>   




More information about the Linux-nvme mailing list