scsi: qla2xxx: edif: Fix session thrash
authorQuinn Tran <qutran@marvell.com>
Wed, 8 Jun 2022 11:58:45 +0000 (04:58 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 10 Jun 2022 17:04:04 +0000 (13:04 -0400)
commita8fdfb0b39c2b31722c70bdf2272b949d5af4b7b
tree416a8f91d545ae6dfffe3f52e0ef39d60227e38c
parentd7e2e4a68fc047a025afcd200e6b7e1fbc8b1999
scsi: qla2xxx: edif: Fix session thrash

Current code prematurely sends out PRLI before authentication application
has given the OK to do so. This causes PRLI failure and session teardown.

Prevents PRLI from going out before authentication app gives the OK.

Link: https://lore.kernel.org/r/20220608115849.16693-7-njavali@marvell.com
Fixes: 91f6f5fbe87b ("scsi: qla2xxx: edif: Reduce connection thrash")
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_edif.c
drivers/scsi/qla2xxx/qla_edif.h
drivers/scsi/qla2xxx/qla_init.c