Re: [PATCH] qla2xxx: Add missing ->vport_slock while calling qlt_update_vp_map

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Acked-by: Saurav Kashyap <saurav.kashyap@xxxxxxxxxx>


>From: Nicholas Bellinger <nab@xxxxxxxxxxxxxxx>
>
>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 <saurav.kashyap@xxxxxxxxxx>
>Cc: Chad Dupuis <chad.dupuis@xxxxxxxxxx>
>Cc: Arun Easi <arun.easi@xxxxxxxxxx>
>Cc: Andrew Vasquez <andrew.vasquez@xxxxxxxxxx>
>Cc: Jiri Kosina <jkosina@xxxxxxx>
>Cc: Roland Dreier <roland@xxxxxxxxxxxxxxx>
>Signed-off-by: Nicholas Bellinger <nab@xxxxxxxxxxxxxxx>
>---
> drivers/scsi/qla2xxx/qla_mid.c |    3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
>diff --git a/drivers/scsi/qla2xxx/qla_mid.c
>b/drivers/scsi/qla2xxx/qla_mid.c
>index 3e8b324..c7eb3bb 100644
>--- 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);
>--
>1.7.2.5
>
>


This message and any attached documents contain information from QLogic Corporation or its wholly-owned subsidiaries that may be confidential. If you are not the intended recipient, you may not read, copy, distribute, or use this information. If you have received this transmission in error, please notify the sender immediately by reply e-mail and then delete this message.

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux