]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
[SCSI] lpfc 8.3.33: Fix error of not reiniting mbx cmd before reissue
authorJames Smart <james.smart@emulex.com>
Fri, 3 Aug 2012 16:34:29 +0000 (12:34 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 14 Sep 2012 13:32:27 +0000 (14:32 +0100)
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/lpfc/lpfc_init.c

index a3c79898ef7a67392b817d2986818f639583e07b..de0818d3fd515dacec9fd19aed183fef23c4bd0e 100644 (file)
@@ -7595,10 +7595,11 @@ lpfc_sli4_send_nop_mbox_cmds(struct lpfc_hba *phba, uint32_t cnt)
        /* Set up NOP SLI4_CONFIG mailbox-ioctl command */
        length = (sizeof(struct lpfc_mbx_nop) -
                  sizeof(struct lpfc_sli4_cfg_mhdr));
-       lpfc_sli4_config(phba, mboxq, LPFC_MBOX_SUBSYSTEM_COMMON,
-                        LPFC_MBOX_OPCODE_NOP, length, LPFC_SLI4_MBX_EMBED);
 
        for (cmdsent = 0; cmdsent < cnt; cmdsent++) {
+               lpfc_sli4_config(phba, mboxq, LPFC_MBOX_SUBSYSTEM_COMMON,
+                                LPFC_MBOX_OPCODE_NOP, length,
+                                LPFC_SLI4_MBX_EMBED);
                if (!phba->sli4_hba.intr_enable)
                        rc = lpfc_sli_issue_mbox(phba, mboxq, MBX_POLL);
                else {