diff options
author | James Smart <James.Smart@Emulex.Com> | 2008-01-11 01:52:48 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-01-23 12:29:22 -0500 |
commit | 13815c8344a238c204e4f4339b22dc4833c6df0f (patch) | |
tree | 207bb747f79221499c79a4eb29419921521ecb56 /drivers/scsi/lpfc/lpfc_sli.c | |
parent | fa61a54e48efc8e5c7a6d4680ad8ceb74a5fca84 (diff) |
[SCSI] lpfc 8.2.4 : Add parameters to enable and disable heartbeat and hba resets
Add parameters to enable and disable heartbeat and hba resets
Signed-off-by: James Smart <James.Smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_sli.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_sli.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c index be6519793f8a..46d529d6ac6b 100644 --- a/drivers/scsi/lpfc/lpfc_sli.c +++ b/drivers/scsi/lpfc/lpfc_sli.c | |||
@@ -2559,6 +2559,11 @@ lpfc_mbox_timeout_handler(struct lpfc_hba *phba) | |||
2559 | * lpfc_offline calls lpfc_sli_hba_down which will clean up | 2559 | * lpfc_offline calls lpfc_sli_hba_down which will clean up |
2560 | * on oustanding mailbox commands. | 2560 | * on oustanding mailbox commands. |
2561 | */ | 2561 | */ |
2562 | /* If resets are disabled then set error state and return. */ | ||
2563 | if (!phba->cfg_enable_hba_reset) { | ||
2564 | phba->link_state = LPFC_HBA_ERROR; | ||
2565 | return; | ||
2566 | } | ||
2562 | lpfc_offline_prep(phba); | 2567 | lpfc_offline_prep(phba); |
2563 | lpfc_offline(phba); | 2568 | lpfc_offline(phba); |
2564 | lpfc_sli_brdrestart(phba); | 2569 | lpfc_sli_brdrestart(phba); |