]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
scsi/lpfc: Fix bug with message 2520 appearing in the messages file
authorVaios Papadimitriou <vaios.papadimitriou@emulex.com>
Tue, 28 Aug 2012 22:56:11 +0000 (15:56 -0700)
committerJerry Snitselaar <jerry.snitselaar@oracle.com>
Wed, 5 Sep 2012 19:25:47 +0000 (12:25 -0700)
commit id: http://marc.info/?l=linux-scsi&m=134401194806312

Signed-off-by: Jerry Snitselaar <jerry.snitselaar@oracle.com>
drivers/scsi/lpfc/lpfc_init.c

index 0b930ae0dbb9a5cb2e094bbe6431c85f38eb5e3e..a9f75e7d816f8d016c2afed36e227e6f1caf589a 100644 (file)
@@ -7583,10 +7583,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 {