aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_init.c
diff options
context:
space:
mode:
authorJames Smart <james.smart@emulex.com>2010-09-29 11:18:45 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-10-07 18:26:19 -0400
commitd439d286f573afab8c164dbc953ce1d214585a40 (patch)
treeeec9c3089e49ae0938b4fff282afd2472d9b7fdc /drivers/scsi/lpfc/lpfc_init.c
parentbf5eefb007e7c5498a41af2dd65d957ae9793a63 (diff)
[SCSI] lpfc 8.3.17: Code Cleanup and Locking fixes
- Move Unload flag earlier in vport deletei to stop ELS traffic - Replaced some unnecessary spin_lock_irqsave with spin_lock_irq - Fixed circular spinlock dependency between low-level driver and SCSI midlayer - Remove duplicate code from lpfc_els_retry routine - Make all error values negative Signed-off-by: Alex Iannicelli <alex.iannicelli@emulex.com> Signed-off-by: James Smart <james.smart@emulex.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_init.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_init.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
index 87a4d09a6641..699c9cf2dad2 100644
--- a/drivers/scsi/lpfc/lpfc_init.c
+++ b/drivers/scsi/lpfc/lpfc_init.c
@@ -4727,8 +4727,8 @@ out_free_mem:
4727 * 4727 *
4728 * Return codes 4728 * Return codes
4729 * 0 - successful 4729 * 0 - successful
4730 * ENOMEM - No availble memory 4730 * -ENOMEM - No availble memory
4731 * EIO - The mailbox failed to complete successfully. 4731 * -EIO - The mailbox failed to complete successfully.
4732 **/ 4732 **/
4733int 4733int
4734lpfc_sli4_init_rpi_hdrs(struct lpfc_hba *phba) 4734lpfc_sli4_init_rpi_hdrs(struct lpfc_hba *phba)
@@ -5421,7 +5421,7 @@ lpfc_sli4_bar2_register_memmap(struct lpfc_hba *phba, uint32_t vf)
5421 * 5421 *
5422 * Return codes 5422 * Return codes
5423 * 0 - successful 5423 * 0 - successful
5424 * ENOMEM - could not allocated memory. 5424 * -ENOMEM - could not allocated memory.
5425 **/ 5425 **/
5426static int 5426static int
5427lpfc_create_bootstrap_mbox(struct lpfc_hba *phba) 5427lpfc_create_bootstrap_mbox(struct lpfc_hba *phba)
@@ -5520,8 +5520,8 @@ lpfc_destroy_bootstrap_mbox(struct lpfc_hba *phba)
5520 * 5520 *
5521 * Return codes 5521 * Return codes
5522 * 0 - successful 5522 * 0 - successful
5523 * ENOMEM - No availble memory 5523 * -ENOMEM - No availble memory
5524 * EIO - The mailbox failed to complete successfully. 5524 * -EIO - The mailbox failed to complete successfully.
5525 **/ 5525 **/
5526static int 5526static int
5527lpfc_sli4_read_config(struct lpfc_hba *phba) 5527lpfc_sli4_read_config(struct lpfc_hba *phba)
@@ -5624,8 +5624,8 @@ lpfc_sli4_read_config(struct lpfc_hba *phba)
5624 * 5624 *
5625 * Return codes 5625 * Return codes
5626 * 0 - successful 5626 * 0 - successful
5627 * ENOMEM - No availble memory 5627 * -ENOMEM - No availble memory
5628 * EIO - The mailbox failed to complete successfully. 5628 * -EIO - The mailbox failed to complete successfully.
5629 **/ 5629 **/
5630static int 5630static int
5631lpfc_setup_endian_order(struct lpfc_hba *phba) 5631lpfc_setup_endian_order(struct lpfc_hba *phba)
@@ -5673,8 +5673,8 @@ lpfc_setup_endian_order(struct lpfc_hba *phba)
5673 * 5673 *
5674 * Return codes 5674 * Return codes
5675 * 0 - successful 5675 * 0 - successful
5676 * ENOMEM - No availble memory 5676 * -ENOMEM - No availble memory
5677 * EIO - The mailbox failed to complete successfully. 5677 * -EIO - The mailbox failed to complete successfully.
5678 **/ 5678 **/
5679static int 5679static int
5680lpfc_sli4_queue_create(struct lpfc_hba *phba) 5680lpfc_sli4_queue_create(struct lpfc_hba *phba)
@@ -5968,8 +5968,8 @@ out_error:
5968 * 5968 *
5969 * Return codes 5969 * Return codes
5970 * 0 - successful 5970 * 0 - successful
5971 * ENOMEM - No availble memory 5971 * -ENOMEM - No availble memory
5972 * EIO - The mailbox failed to complete successfully. 5972 * -EIO - The mailbox failed to complete successfully.
5973 **/ 5973 **/
5974static void 5974static void
5975lpfc_sli4_queue_destroy(struct lpfc_hba *phba) 5975lpfc_sli4_queue_destroy(struct lpfc_hba *phba)
@@ -6032,8 +6032,8 @@ lpfc_sli4_queue_destroy(struct lpfc_hba *phba)
6032 * 6032 *
6033 * Return codes 6033 * Return codes
6034 * 0 - successful 6034 * 0 - successful
6035 * ENOMEM - No availble memory 6035 * -ENOMEM - No availble memory
6036 * EIO - The mailbox failed to complete successfully. 6036 * -EIO - The mailbox failed to complete successfully.
6037 **/ 6037 **/
6038int 6038int
6039lpfc_sli4_queue_setup(struct lpfc_hba *phba) 6039lpfc_sli4_queue_setup(struct lpfc_hba *phba)
@@ -6277,8 +6277,8 @@ out_error:
6277 * 6277 *
6278 * Return codes 6278 * Return codes
6279 * 0 - successful 6279 * 0 - successful
6280 * ENOMEM - No availble memory 6280 * -ENOMEM - No availble memory
6281 * EIO - The mailbox failed to complete successfully. 6281 * -EIO - The mailbox failed to complete successfully.
6282 **/ 6282 **/
6283void 6283void
6284lpfc_sli4_queue_unset(struct lpfc_hba *phba) 6284lpfc_sli4_queue_unset(struct lpfc_hba *phba)
@@ -6483,8 +6483,8 @@ lpfc_sli4_cq_event_release_all(struct lpfc_hba *phba)
6483 * 6483 *
6484 * Return codes 6484 * Return codes
6485 * 0 - successful 6485 * 0 - successful
6486 * ENOMEM - No availble memory 6486 * -ENOMEM - No availble memory
6487 * EIO - The mailbox failed to complete successfully. 6487 * -EIO - The mailbox failed to complete successfully.
6488 **/ 6488 **/
6489int 6489int
6490lpfc_pci_function_reset(struct lpfc_hba *phba) 6490lpfc_pci_function_reset(struct lpfc_hba *phba)