lpfc: Tie in to new dev_loss_tmo interface in nvme transport
Subsystems (3)
PATCH 1/1 lpfc: Tie in to new dev_loss_tmo interface in nvme transport
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.
---
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(+)
drivers/scsi/lpfc/lpfc_attr.c +3 -0
@@ -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); }
Signature · 1 line
2.13.1
PATCH 1/1 lpfc: Tie in to new dev_loss_tmo interface in nvme transport
please disregard. A v2 that ensures CONFIG_NVME_FC is enabled is on its way
-- james
Quoted 28 lines · James Smart
This patch calls the new nvme transport routine for
dev_loss_tmowhenever the SCSI fc transport calls the lldd to make a dynamic change to a remote portsdev_loss_tmo.Signed-off-by James Smart <james.smart at broadcom.com>---
This lpfc patch, as dependent upon the new nvme transportnvme_fc_set_remoteport_devloss()call, should enter via nvme-4.15--- drivers/scsi/lpfc/lpfc_attr.c | 3 +++ 1 file changed, 3 insertions(+)drivers/scsi/lpfc/lpfc_attr.c +3
-0@@ -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); }