diff options
author | Roman Bolshakov <r.bolshakov@yadro.com> | 2019-11-25 19:56:54 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-12-09 18:29:06 -0500 |
commit | 58e39a2ce4be08162c0368030cdc405f7fd849aa (patch) | |
tree | edf172da972c2f584dbab143d76f180576df41f4 /drivers/scsi/sd.h | |
parent | 600954e6f2df695434887dfc6a99a098859990cf (diff) | |
download | linux-58e39a2ce4be08162c0368030cdc405f7fd849aa.tar.gz linux-58e39a2ce4be08162c0368030cdc405f7fd849aa.tar.bz2 linux-58e39a2ce4be08162c0368030cdc405f7fd849aa.zip |
scsi: qla2xxx: Change discovery state before PLOGI
When a port sends PLOGI, discovery state should be changed to login
pending, otherwise RELOGIN_NEEDED bit is set in
qla24xx_handle_plogi_done_event(). RELOGIN_NEEDED triggers another PLOGI,
and it never goes out of the loop until login timer expires.
Fixes: 8777e4314d397 ("scsi: qla2xxx: Migrate NVME N2N handling into state machine")
Fixes: 8b5292bcfcacf ("scsi: qla2xxx: Fix Relogin to prevent modifying scan_state flag")
Cc: Quinn Tran <qutran@marvell.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20191125165702.1013-6-r.bolshakov@yadro.com
Acked-by: Himanshu Madhani <hmadhani@marvell.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Tested-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/sd.h')
0 files changed, 0 insertions, 0 deletions