]> asedeno.scripts.mit.edu Git - linux.git/commit
scsi: qla2xxx: Fix unintended Logout
authorQuinn Tran <quinn.tran@cavium.com>
Thu, 2 Aug 2018 20:16:51 +0000 (13:16 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 2 Aug 2018 20:56:18 +0000 (16:56 -0400)
commitcb97f2c2e8d9f8c71ddbf04ad57e163ee6d86474
treefe6dae14ae2ad5ba69e8cea9d185f948fe131d36
parent8fde6977ac478c00eeb2beccfdd4a6ad44219f6c
scsi: qla2xxx: Fix unintended Logout

During normal IO, FW can return IO with 'port unavailble' status.  Driver
would send a LOGO to remote port for session resync.  On an off chance, a
PLOGI could arrive before sending the LOGO.  This patch will skip sendiing
LOGO if a PLOGI just came in.

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_target.c