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. Signed-off-by: Hannes Reinecke <hare@suse.com> Acked-by: Johannes Thumshirn <jth@kernel.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
Родитель
f7ce413cea
Коммит
a50cc9eccc
|
@ -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,
|
static void fc_rport_error_retry(struct fc_rport_priv *rdata,
|
||||||
struct fc_frame *fp)
|
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;
|
struct fc_lport *lport = rdata->local_port;
|
||||||
|
|
||||||
/* make sure this isn't an FC_EX_CLOSED error, never retry those */
|
/* make sure this isn't an FC_EX_CLOSED error, never retry those */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче