mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-14 18:49:15 +00:00
[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>
This commit is contained in:
parent
9c2b297572
commit
3f3b6f98cb
1 changed files with 2 additions and 1 deletions
|
@ -136,7 +136,8 @@ qla24xx_enable_vp(scsi_qla_host_t *vha)
|
||||||
|
|
||||||
/* Check if physical ha port is Up */
|
/* Check if physical ha port is Up */
|
||||||
if (atomic_read(&base_vha->loop_state) == LOOP_DOWN ||
|
if (atomic_read(&base_vha->loop_state) == LOOP_DOWN ||
|
||||||
atomic_read(&base_vha->loop_state) == LOOP_DEAD) {
|
atomic_read(&base_vha->loop_state) == LOOP_DEAD ||
|
||||||
|
!(ha->current_topology & ISP_CFG_F)) {
|
||||||
vha->vp_err_state = VP_ERR_PORTDWN;
|
vha->vp_err_state = VP_ERR_PORTDWN;
|
||||||
fc_vport_set_state(vha->fc_vport, FC_VPORT_LINKDOWN);
|
fc_vport_set_state(vha->fc_vport, FC_VPORT_LINKDOWN);
|
||||||
goto enable_failed;
|
goto enable_failed;
|
||||||
|
|
Loading…
Add table
Reference in a new issue