Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 161043
b: refs/heads/master
c: 9764ff8
h: refs/heads/master
i:
  161041: f556df4
  161039: 48d0c39
v: v3
  • Loading branch information
Andrew Vasquez authored and James Bottomley committed Aug 22, 2009
1 parent 3309295 commit bd228fe
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8f1f3ece891e8fe6ee69fa27617b60cb26e37bec
refs/heads/master: 9764ff8807a2455218e2ec5024e823cc09b01906
30 changes: 29 additions & 1 deletion trunk/drivers/scsi/qla2xxx/qla_isr.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,8 +599,36 @@ qla2x00_async_event(scsi_qla_host_t *vha, struct rsp_que *rsp, uint16_t *mb)

case MBA_PORT_UPDATE: /* Port database update */
/* Only handle SCNs for our Vport index. */
if (vha->vp_idx && vha->vp_idx != (mb[3] & 0xff))
if (mb[1] != 0xffff &&
vha->vp_idx && vha->vp_idx != (mb[3] & 0xff))
break;

/* Global event -- port logout or port unavailable. */
if (mb[1] == 0xffff && mb[2] == 0x7) {
DEBUG2(printk("scsi(%ld): Asynchronous PORT UPDATE.\n",
vha->host_no));
DEBUG(printk(KERN_INFO
"scsi(%ld): Port unavailable %04x %04x %04x.\n",
vha->host_no, mb[1], mb[2], mb[3]));

if (atomic_read(&vha->loop_state) != LOOP_DOWN) {
atomic_set(&vha->loop_state, LOOP_DOWN);
atomic_set(&vha->loop_down_timer,
LOOP_DOWN_TIME);
vha->device_flags |= DFLG_NO_CABLE;
qla2x00_mark_all_devices_lost(vha, 1);
}

if (vha->vp_idx) {
atomic_set(&vha->vp_state, VP_FAILED);
fc_vport_set_state(vha->fc_vport,
FC_VPORT_FAILED);
}

vha->flags.management_server_logged_in = 0;
ha->link_data_rate = PORT_SPEED_UNKNOWN;
break;
}

/*
* If PORT UPDATE is global (received LIP_OCCURRED/LIP_RESET
Expand Down

0 comments on commit bd228fe

Please sign in to comment.