qla2xxx: Wait for reset completion without lock for ISPFX00.
authorSaurav Kashyap <saurav.kashyap@qlogic.com>
Fri, 11 Apr 2014 20:54:06 +0000 (16:54 -0400)
committerChristoph Hellwig <hch@lst.de>
Mon, 19 May 2014 11:30:59 +0000 (13:30 +0200)
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/qla2xxx/qla_mr.c

index 0aaf6a9c87d3a834f726658d33ecbc5f9e6fb011..c1df39a81b3c6dda633d53801f061e5f5cc4f6b4 100644 (file)
@@ -572,12 +572,13 @@ qlafx00_soc_cpu_reset(scsi_qla_host_t *vha)
        /* Kick in Core0 to start boot process */
        QLAFX00_SET_HBA_SOC_REG(ha, SOC_SW_RST_CONTROL_REG_CORE0, (0xF00));
 
+       spin_unlock_irqrestore(&ha->hardware_lock, flags);
+
        /* Wait 10secs for soft-reset to complete. */
        for (cnt = 10; cnt; cnt--) {
                msleep(1000);
                barrier();
        }
-       spin_unlock_irqrestore(&ha->hardware_lock, flags);
 }
 
 /**