scsi: qla2xxx: edif: Fix stall session after app start
authorQuinn Tran <qutran@marvell.com>
Thu, 22 Dec 2022 04:39:29 +0000 (20:39 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 12 Jan 2023 04:48:26 +0000 (23:48 -0500)
commit129a7c40294fd4ab9e9bccf76e8002818f492d8a
treea57d3688e0801788d235e5078bc9c44fef5972c4
parent82d8dfd2a238261e06759ee792417dc99b93d60d
scsi: qla2xxx: edif: Fix stall session after app start

For N2N, qla2x00_wait_for_sess_deletion call flushes
a session which accidentally clear the scan_flag and thus prevents
re-login to occur and causes session to stall.

Use session delete to avoid the accidental clearing of scan_flag.

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