scsi: qla2xxx: Fix point-to-point (N2N) device discovery issue
authorArun Easi <aeasi@marvell.com>
Tue, 29 Sep 2020 10:21:51 +0000 (03:21 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 30 Sep 2020 03:22:19 +0000 (23:22 -0400)
commit94eda2717826015a80ca271394c4378747de8936
tree0faf7c095574eddc14dc953cf6f0b6af363e9260
parent50457dab670f396557e60c07f086358460876353
scsi: qla2xxx: Fix point-to-point (N2N) device discovery issue

Driver was using a shorter timeout waiting for PLOGI from the peer in
point-to-point configurations. Some devices takes some time (~4 seconds) to
initiate the PLOGI. This peer initiating PLOGI is when the peer has a
higher P-WWN.

Increase the wait time based on N2N R_A_TOV.

Link: https://lore.kernel.org/r/20200929102152.32278-7-njavali@marvell.com
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Arun Easi <aeasi@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_def.h
drivers/scsi/qla2xxx/qla_mbx.c
drivers/scsi/qla2xxx/qla_os.c