diff options
author | Lalit Chandivade <lalit.chandivade@qlogic.com> | 2010-05-28 18:08:24 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-07-27 13:01:24 -0400 |
commit | 3f3b6f98cb33043cba04f45a2f2c43b8303c120c (patch) | |
tree | 4a4e7a8e23903e24a7a37ce384c8ff90a66120cd /drivers/scsi/qla2xxx/qla_mid.c | |
parent | 9c2b297572bf3cc36d26520cd8f7e7ef4cb857f8 (diff) |
[SCSI] qla2xxx: Do not enable VP in non fabric topology.
After topology change ISP is reset and VPs are re-enabled.
If the topology is not fabric, VPs could falsely get enabled.
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_mid.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_mid.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_mid.c b/drivers/scsi/qla2xxx/qla_mid.c index 8220e7b9799..d1618b4a5e5 100644 --- a/drivers/scsi/qla2xxx/qla_mid.c +++ b/drivers/scsi/qla2xxx/qla_mid.c | |||
@@ -136,7 +136,8 @@ qla24xx_enable_vp(scsi_qla_host_t *vha) | |||
136 | 136 | ||
137 | /* Check if physical ha port is Up */ | 137 | /* Check if physical ha port is Up */ |
138 | if (atomic_read(&base_vha->loop_state) == LOOP_DOWN || | 138 | if (atomic_read(&base_vha->loop_state) == LOOP_DOWN || |
139 | atomic_read(&base_vha->loop_state) == LOOP_DEAD) { | 139 | atomic_read(&base_vha->loop_state) == LOOP_DEAD || |
140 | !(ha->current_topology & ISP_CFG_F)) { | ||
140 | vha->vp_err_state = VP_ERR_PORTDWN; | 141 | vha->vp_err_state = VP_ERR_PORTDWN; |
141 | fc_vport_set_state(vha->fc_vport, FC_VPORT_LINKDOWN); | 142 | fc_vport_set_state(vha->fc_vport, FC_VPORT_LINKDOWN); |
142 | goto enable_failed; | 143 | goto enable_failed; |