scsi: qla2xxx: Fix stuck session in PLOGI state
authorQuinn Tran <quinn.tran@cavium.com>
Tue, 11 Sep 2018 17:18:20 +0000 (10:18 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 12 Sep 2018 00:28:10 +0000 (20:28 -0400)
commit861d483dcd1822b360ed186801c889a7da83e80d
tree556cdc81791ec1d9b9b933fdedd6eff212aa5277
parent8235f4b5aeba868739f6e12a51ad92689e3f78ef
scsi: qla2xxx: Fix stuck session in PLOGI state

On PLOGI complete + RSCN received, driver tries to handle RSCN but failed to
reset the session back to the beginning to restart the login process. Instead
the session was left in the Plogi complete without moving forward.  This patch
will push the session state back to the delete state and restart the
connection.

Signed-off-by: Quinn Tran <quinn.tran@cavium.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_init.c
drivers/scsi/qla2xxx/qla_target.c