* [PATCH] lpfc: Tie in to new dev_loss_tmo interface in nvme transport
@ 2017-11-03 16:12 James Smart
2017-11-03 16:30 ` James Smart
0 siblings, 1 reply; 2+ messages in thread
From: James Smart @ 2017-11-03 16:12 UTC (permalink / raw)
To: linux-scsi, linux-nvme; +Cc: James Smart, James Smart
This patch calls the new nvme transport routine for dev_loss_tmo
whenever the SCSI fc transport calls the lldd to make a dynamic
change to a remote ports dev_loss_tmo.
Signed-off-by: James Smart <james.smart@broadcom.com>
---
This lpfc patch, as dependent upon the new nvme transport
nvme_fc_set_remoteport_devloss() call, should enter via nvme-4.15
---
drivers/scsi/lpfc/lpfc_attr.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c
index c17677f494af..1191a92e2dbc 100644
--- a/drivers/scsi/lpfc/lpfc_attr.c
+++ b/drivers/scsi/lpfc/lpfc_attr.c
@@ -3246,6 +3246,9 @@ lpfc_update_rport_devloss_tmo(struct lpfc_vport *vport)
continue;
if (ndlp->rport)
ndlp->rport->dev_loss_tmo = vport->cfg_devloss_tmo;
+ if (ndlp->nrport)
+ nvme_fc_set_remoteport_devloss(ndlp->nrport->remoteport,
+ vport->cfg_devloss_tmo);
}
spin_unlock_irq(shost->host_lock);
}
--
2.13.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] lpfc: Tie in to new dev_loss_tmo interface in nvme transport
2017-11-03 16:12 [PATCH] lpfc: Tie in to new dev_loss_tmo interface in nvme transport James Smart
@ 2017-11-03 16:30 ` James Smart
0 siblings, 0 replies; 2+ messages in thread
From: James Smart @ 2017-11-03 16:30 UTC (permalink / raw)
To: linux-scsi, linux-nvme; +Cc: James Smart
please disregard. A v2 that ensures CONFIG_NVME_FC is enabled is on its way
-- james
On 11/3/2017 9:12 AM, James Smart wrote:
> This patch calls the new nvme transport routine for dev_loss_tmo
> whenever the SCSI fc transport calls the lldd to make a dynamic
> change to a remote ports dev_loss_tmo.
>
> Signed-off-by: James Smart <james.smart@broadcom.com>
>
> ---
> This lpfc patch, as dependent upon the new nvme transport
> nvme_fc_set_remoteport_devloss() call, should enter via nvme-4.15
> ---
> drivers/scsi/lpfc/lpfc_attr.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c
> index c17677f494af..1191a92e2dbc 100644
> --- a/drivers/scsi/lpfc/lpfc_attr.c
> +++ b/drivers/scsi/lpfc/lpfc_attr.c
> @@ -3246,6 +3246,9 @@ lpfc_update_rport_devloss_tmo(struct lpfc_vport *vport)
> continue;
> if (ndlp->rport)
> ndlp->rport->dev_loss_tmo = vport->cfg_devloss_tmo;
> + if (ndlp->nrport)
> + nvme_fc_set_remoteport_devloss(ndlp->nrport->remoteport,
> + vport->cfg_devloss_tmo);
> }
> spin_unlock_irq(shost->host_lock);
> }
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-11-03 16:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-03 16:12 [PATCH] lpfc: Tie in to new dev_loss_tmo interface in nvme transport James Smart
2017-11-03 16:30 ` James Smart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).