Skip to content

Commit

Permalink
[SCSI] qla2xxx: Correct loop-resync issues during SNS scans.
Browse files Browse the repository at this point in the history
Original code could inadvertently skip the post processing of
port information returned from the SNS scan, if any link-flopping
asynchronous-events were received (noticed in FCAL topologies).

Cc: stable@kernel.org
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
  • Loading branch information
Andrew Vasquez authored and James Bottomley committed Feb 19, 2010
1 parent 715848c commit bb2d52b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/scsi/qla2xxx/qla_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -2910,8 +2910,13 @@ qla2x00_find_all_fabric_devs(scsi_qla_host_t *vha,
if (qla2x00_is_reserved_id(vha, loop_id))
continue;

if (atomic_read(&vha->loop_down_timer) || LOOP_TRANSITION(vha))
if (atomic_read(&vha->loop_down_timer) ||
LOOP_TRANSITION(vha)) {
atomic_set(&vha->loop_down_timer, 0);
set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags);
set_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags);
break;
}

if (swl != NULL) {
if (last_dev) {
Expand Down

0 comments on commit bb2d52b

Please sign in to comment.