diff options
Diffstat (limited to 'drivers/scsi/qla2xxx')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_init.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 799a58bb9859..48fca47384b7 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c | |||
@@ -2080,6 +2080,7 @@ qla2x00_configure_hba(scsi_qla_host_t *vha) | |||
2080 | uint8_t domain; | 2080 | uint8_t domain; |
2081 | char connect_type[22]; | 2081 | char connect_type[22]; |
2082 | struct qla_hw_data *ha = vha->hw; | 2082 | struct qla_hw_data *ha = vha->hw; |
2083 | unsigned long flags; | ||
2083 | 2084 | ||
2084 | /* Get host addresses. */ | 2085 | /* Get host addresses. */ |
2085 | rval = qla2x00_get_adapter_id(vha, | 2086 | rval = qla2x00_get_adapter_id(vha, |
@@ -2154,9 +2155,9 @@ qla2x00_configure_hba(scsi_qla_host_t *vha) | |||
2154 | vha->d_id.b.area = area; | 2155 | vha->d_id.b.area = area; |
2155 | vha->d_id.b.al_pa = al_pa; | 2156 | vha->d_id.b.al_pa = al_pa; |
2156 | 2157 | ||
2157 | spin_lock(&ha->vport_slock); | 2158 | spin_lock_irqsave(&ha->vport_slock, flags); |
2158 | qlt_update_vp_map(vha, SET_AL_PA); | 2159 | qlt_update_vp_map(vha, SET_AL_PA); |
2159 | spin_unlock(&ha->vport_slock); | 2160 | spin_unlock_irqrestore(&ha->vport_slock, flags); |
2160 | 2161 | ||
2161 | if (!vha->flags.init_done) | 2162 | if (!vha->flags.init_done) |
2162 | ql_log(ql_log_info, vha, 0x2010, | 2163 | ql_log(ql_log_info, vha, 0x2010, |