scsi: qla2xxx: edif: Reduce connection thrash
authorQuinn Tran <qutran@marvell.com>
Tue, 26 Oct 2021 11:54:08 +0000 (04:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:23:39 +0000 (14:23 +0200)
commitaa7269ee63ec6962734194ca71f6ee01c6869d6a
treeccb6e7780db01d3bec30eda925e78413a9c24432
parent7b2fbfa4b2cd3a24c1760b85d842e928070d4744
scsi: qla2xxx: edif: Reduce connection thrash

[ Upstream commit 91f6f5fbe87ba834133fcc61d34881cb8ec9e518 ]

On ipsec start by remote port, target port may use RSCN to trigger
initiator to relogin. If driver is already in the process of a relogin,
then ignore the RSCN and allow the current relogin to continue. This
reduces thrashing of the connection.

Link: https://lore.kernel.org/r/20211026115412.27691-10-njavali@marvell.com
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/qla2xxx/qla_attr.c
drivers/scsi/qla2xxx/qla_edif.h
drivers/scsi/qla2xxx/qla_init.c