aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_init.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_init.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
index 0615af41c7b5..0143baf4ba3b 100644
--- a/drivers/scsi/lpfc/lpfc_init.c
+++ b/drivers/scsi/lpfc/lpfc_init.c
@@ -508,7 +508,7 @@ lpfc_hba_down_post(struct lpfc_hba *phba)
508} 508}
509 509
510/* HBA heart beat timeout handler */ 510/* HBA heart beat timeout handler */
511void 511static void
512lpfc_hb_timeout(unsigned long ptr) 512lpfc_hb_timeout(unsigned long ptr)
513{ 513{
514 struct lpfc_hba *phba; 514 struct lpfc_hba *phba;
@@ -1429,6 +1429,16 @@ lpfc_stop_phba_timers(struct lpfc_hba *phba)
1429 return; 1429 return;
1430} 1430}
1431 1431
1432static void
1433lpfc_block_mgmt_io(struct lpfc_hba * phba)
1434{
1435 unsigned long iflag;
1436
1437 spin_lock_irqsave(&phba->hbalock, iflag);
1438 phba->sli.sli_flag |= LPFC_BLOCK_MGMT_IO;
1439 spin_unlock_irqrestore(&phba->hbalock, iflag);
1440}
1441
1432int 1442int
1433lpfc_online(struct lpfc_hba *phba) 1443lpfc_online(struct lpfc_hba *phba)
1434{ 1444{
@@ -1475,16 +1485,6 @@ lpfc_online(struct lpfc_hba *phba)
1475} 1485}
1476 1486
1477void 1487void
1478lpfc_block_mgmt_io(struct lpfc_hba * phba)
1479{
1480 unsigned long iflag;
1481
1482 spin_lock_irqsave(&phba->hbalock, iflag);
1483 phba->sli.sli_flag |= LPFC_BLOCK_MGMT_IO;
1484 spin_unlock_irqrestore(&phba->hbalock, iflag);
1485}
1486
1487void
1488lpfc_unblock_mgmt_io(struct lpfc_hba * phba) 1488lpfc_unblock_mgmt_io(struct lpfc_hba * phba)
1489{ 1489{
1490 unsigned long iflag; 1490 unsigned long iflag;