]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
scsi: libfc: use configured lport R_A_TOV
authorHannes Reinecke <hare@suse.de>
Thu, 13 Oct 2016 13:10:39 +0000 (15:10 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Nov 2016 22:29:51 +0000 (17:29 -0500)
We should be using the configured R_A_TOV value when sending the
exchange.

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>
drivers/scsi/libfc/fc_exch.c

index 91800cb776ecdc8c3eb55a81a6dfd3c2ea6337be..99cc5a9419975944a3270a937f4f59393ecb65af 100644 (file)
@@ -2140,7 +2140,7 @@ static struct fc_seq *fc_exch_seq_send(struct fc_lport *lport,
        ep->resp = resp;
        ep->destructor = destructor;
        ep->arg = arg;
-       ep->r_a_tov = FC_DEF_R_A_TOV;
+       ep->r_a_tov = lport->r_a_tov;
        ep->lp = lport;
        sp = &ep->seq;