projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f0c058
)
qla2xxx: Add missing ->vport_slock while calling qlt_update_vp_map
author
Nicholas Bellinger
<
[email protected]
>
Tue, 9 Oct 2012 19:12:14 +0000
(12:12 -0700)
committer
Nicholas Bellinger
<
[email protected]
>
Fri, 26 Oct 2012 19:29:46 +0000
(12:29 -0700)
All other callers of qlt_update_vp_map() already hold ->vport_slock
while updating the vp target map, so go ahead and add the missing
->vport_slock within qla24xx_disable_vp() code.
Cc: Saurav Kashyap <
[email protected]
>
Cc: Chad Dupuis <
[email protected]
>
Cc: Arun Easi <
[email protected]
>
Cc: Andrew Vasquez <
[email protected]
>
Cc: Jiri Kosina <
[email protected]
>
Cc: Roland Dreier <
[email protected]
>
Acked-by: Saurav Kashyap <
[email protected]
>
Signed-off-by: Nicholas Bellinger <
[email protected]
>
drivers/scsi/qla2xxx/qla_mid.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/qla2xxx/qla_mid.c
b/drivers/scsi/qla2xxx/qla_mid.c
index bd4708a422cd78b09fd8594ded593af775343398..20fd974f903afd5d4ae15c95db2549d49db52849 100644
(file)
--- a/
drivers/scsi/qla2xxx/qla_mid.c
+++ b/
drivers/scsi/qla2xxx/qla_mid.c
@@
-149,6
+149,7
@@
qla2x00_mark_vp_devices_dead(scsi_qla_host_t *vha)
int
qla24xx_disable_vp(scsi_qla_host_t *vha)
{
+ unsigned long flags;
int ret;
ret = qla24xx_control_vp(vha, VCE_COMMAND_DISABLE_VPS_LOGO_ALL);
@@
-156,7
+157,9
@@
qla24xx_disable_vp(scsi_qla_host_t *vha)
atomic_set(&vha->loop_down_timer, LOOP_DOWN_TIME);
/* Remove port id from vp target map */
+ spin_lock_irqsave(&vha->hw->vport_slock, flags);
qlt_update_vp_map(vha, RESET_AL_PA);
+ spin_unlock_irqrestore(&vha->hw->vport_slock, flags);
qla2x00_mark_vp_devices_dead(vha);
atomic_set(&vha->vp_state, VP_FAILED);