[SCSI] lpfc 8.3.27: Fix queue allocation failure recovery
authorJames Smart <james.smart@emulex.com>
Tue, 11 Oct 2011 01:33:49 +0000 (21:33 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 16 Oct 2011 16:32:17 +0000 (11:32 -0500)
commit5350d872c19a59ef8eadab1e70db83064c134cfa
tree4a34c698b36f0874ca808a76583a1d69b122437d
parentcd1c8301db15ee52bfc5a0e5bc16b52bab8475aa
[SCSI] lpfc 8.3.27: Fix queue allocation failure recovery

Fix queue allocation failure recovery

- Move the allocation of the Queues closer to the creation of the queues.
- If there is a problem with creation, or if the HBA is reset, the queues
  will be completely freed and re allocated.
- Only allocate fcp_eq_hdl if cfg_fcp_eq_count is non-zero.

Signed-off-by: Alex Iannicelli <alex.iannicelli@emulex.com>
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/lpfc/lpfc_crtn.h
drivers/scsi/lpfc/lpfc_init.c
drivers/scsi/lpfc/lpfc_sli.c