diff options
author | James Smart <James.Smart@Emulex.Com> | 2006-07-06 15:50:43 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-07-09 11:48:38 -0400 |
commit | b4c026520ff0a4cb838a941bb0ed8996075e3d8c (patch) | |
tree | c280062f59f802cfbc92d967e54cdd0191ce4e36 /drivers/scsi/lpfc/lpfc_init.c | |
parent | ce8b3ce55bb0bd9318954efab0f714b088178978 (diff) |
[SCSI] lpfc 8.1.7: Add lpfc_sli_flush_mbox_queue() function
Add lpfc_sli_flush_mbox_queue() function and use it in lpfc_offline() call
to avoid deadlock on thread block.
Signed-off-by: James Smart <James.Smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_init.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 2a81df054022..ee591c107e1c 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c | |||
@@ -1353,6 +1353,7 @@ lpfc_offline(struct lpfc_hba * phba) | |||
1353 | psli = &phba->sli; | 1353 | psli = &phba->sli; |
1354 | 1354 | ||
1355 | lpfc_linkdown(phba); | 1355 | lpfc_linkdown(phba); |
1356 | lpfc_sli_flush_mbox_queue(phba); | ||
1356 | 1357 | ||
1357 | for (i = 0; i < psli->num_rings; i++) { | 1358 | for (i = 0; i < psli->num_rings; i++) { |
1358 | pring = &psli->ring[i]; | 1359 | pring = &psli->ring[i]; |