]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: qla2xxx: ensure async flags are reset correctly
authorHannes Reinecke <hare@suse.de>
Thu, 22 Feb 2018 08:49:37 +0000 (09:49 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 2 Mar 2018 01:16:51 +0000 (20:16 -0500)
commit275b2672335f76a9adcae0bf5a3fe719b2f217ef
treeb9210ce03c4023d1af74218d920bafef5630e646
parent2ed2c9cff33a76265ed0cd912a49f7b90afedd04
scsi: qla2xxx: ensure async flags are reset correctly

The fcport flags FCF_ASYNC_ACTIVE and FCF_ASYNC_SENT are used to
throttle the state machine, so we need to ensure to always set and unset
them correctly. Not doing so will lead to the state machine getting
confused and no login attempt into remote ports.

Cc: Quinn Tran <quinn.tran@cavium.com>
Cc: Himanshu Madhani <himanshu.madhani@cavium.com>
Fixes: 4a91f40a024c ("scsi: qla2xxx: Prevent multiple active discovery commands per session")
Signed-off-by: Hannes Reinecke <hare@suse.com>
Acked-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_gs.c
drivers/scsi/qla2xxx/qla_init.c