From: Hannes Reinecke Date: Thu, 13 Oct 2016 13:10:40 +0000 (+0200) Subject: scsi: libfc: use configured rport E_D_TOV X-Git-Tag: v4.1.12-124.31.3~126 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=1c5dc442ceeee1da9761d114196028edd00e64e3;p=users%2Fjedix%2Flinux-maple.git scsi: libfc: use configured rport E_D_TOV If fc_rport_error_retry() is attempting to retry the remote port state we should be waiting for the configured e_d_tov value rather than the default. Orabug: 25933179 Reviewed-by: John Sobecki Signed-off-by: Hannes Reinecke Acked-by: Johannes Thumshirn Signed-off-by: Martin K. Petersen Signed-off-by: Rajan Shanmugavelu Signed-off-by: Brian Maly --- diff --git a/drivers/scsi/libfc/fc_rport.c b/drivers/scsi/libfc/fc_rport.c index bcd1cd3c5285..bb7e9d9a3179 100644 --- a/drivers/scsi/libfc/fc_rport.c +++ b/drivers/scsi/libfc/fc_rport.c @@ -662,7 +662,7 @@ static void fc_rport_error(struct fc_rport_priv *rdata, struct fc_frame *fp) static void fc_rport_error_retry(struct fc_rport_priv *rdata, struct fc_frame *fp) { - unsigned long delay = msecs_to_jiffies(FC_DEF_E_D_TOV); + unsigned long delay = msecs_to_jiffies(rdata->e_d_tov); struct fc_lport *lport = rdata->local_port; /* make sure this isn't an FC_EX_CLOSED error, never retry those */