diff options
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_mbox.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_mbox.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/scsi/lpfc/lpfc_mbox.c b/drivers/scsi/lpfc/lpfc_mbox.c index 5bb376baba62..7c02a6c3b699 100644 --- a/drivers/scsi/lpfc/lpfc_mbox.c +++ b/drivers/scsi/lpfc/lpfc_mbox.c | |||
@@ -1315,10 +1315,12 @@ lpfc_mbox_get(struct lpfc_hba * phba) | |||
1315 | void | 1315 | void |
1316 | lpfc_mbox_cmpl_put(struct lpfc_hba * phba, LPFC_MBOXQ_t * mbq) | 1316 | lpfc_mbox_cmpl_put(struct lpfc_hba * phba, LPFC_MBOXQ_t * mbq) |
1317 | { | 1317 | { |
1318 | unsigned long iflag; | ||
1319 | |||
1318 | /* This function expects to be called from interrupt context */ | 1320 | /* This function expects to be called from interrupt context */ |
1319 | spin_lock(&phba->hbalock); | 1321 | spin_lock_irqsave(&phba->hbalock, iflag); |
1320 | list_add_tail(&mbq->list, &phba->sli.mboxq_cmpl); | 1322 | list_add_tail(&mbq->list, &phba->sli.mboxq_cmpl); |
1321 | spin_unlock(&phba->hbalock); | 1323 | spin_unlock_irqrestore(&phba->hbalock, iflag); |
1322 | return; | 1324 | return; |
1323 | } | 1325 | } |
1324 | 1326 | ||