lpfc: tie in to new dev_loss_tmo interface in nvme transport
authorJames Smart <jsmart2021@gmail.com>
Fri, 3 Nov 2017 16:33:30 +0000 (09:33 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 11 Nov 2017 02:53:25 +0000 (19:53 -0700)
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>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/scsi/lpfc/lpfc_attr.c

index c17677f494afe7f9baf741732511c62d4ea0bde7..3e02bc3a7c3f7990c2354e858055770290d37a4a 100644 (file)
@@ -3246,6 +3246,11 @@ lpfc_update_rport_devloss_tmo(struct lpfc_vport *vport)
                        continue;
                if (ndlp->rport)
                        ndlp->rport->dev_loss_tmo = vport->cfg_devloss_tmo;
+#if (IS_ENABLED(CONFIG_NVME_FC))
+               if (ndlp->nrport)
+                       nvme_fc_set_remoteport_devloss(ndlp->nrport->remoteport,
+                                                      vport->cfg_devloss_tmo);
+#endif
        }
        spin_unlock_irq(shost->host_lock);
 }