scsi: qla2xxx: Fix stale session
authorQuinn Tran <qutran@marvell.com>
Fri, 30 Aug 2019 22:24:01 +0000 (15:24 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 7 Sep 2019 19:38:55 +0000 (15:38 -0400)
commit2037ce49d30a0d07348df406ef78f6664f4bc899
tree58c55dc885cde3a494b073df69fbdddf8e0bd719
parentce0ba496dccfc15d3a8866b845864585b5d316ff
scsi: qla2xxx: Fix stale session

On fast cable pull, where driver is unable to detect device has disappeared
and came back based on switch info, qla2xxx would not re-login while remote
port has already invalidated the session.  This causes IO timeout.  This
patch would relogin to remote device for RSCN affected port.

Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Link: https://lore.kernel.org/r/20190830222402.23688-6-hmadhani@marvell.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_gs.c