scsi: qla2xxx: edif: Fix potential stuck session in sa update
authorQuinn Tran <qutran@marvell.com>
Tue, 7 Jun 2022 04:46:21 +0000 (21:46 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:23:39 +0000 (14:23 +0200)
commit7b2fbfa4b2cd3a24c1760b85d842e928070d4744
tree6c1d3610ef6a23b9ae1d01a81138b4b2ee59ac5b
parentbf890f1408b2a209eeb4d74a21120c7210d53141
scsi: qla2xxx: edif: Fix potential stuck session in sa update

[ Upstream commit e0fb8ce2bb9e52c846e54ad2c58b5b7beb13eb09 ]

When a thread is in the process of reestablish a session, a flag is set to
prevent multiple threads/triggers from doing the same task. This flag was
left on, and any attempt to relogin was locked out. Clear this flag if the
attempt has failed.

Link: https://lore.kernel.org/r/20220607044627.19563-6-njavali@marvell.com
Fixes: dd30706e73b7 ("scsi: qla2xxx: edif: Add key update")
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_edif.c