diff options
author | James Smart <james.smart@emulex.com> | 2010-06-07 15:24:45 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-07-27 13:01:34 -0400 |
commit | 2a9bf3d011303d8da64cd5e0e7fdd95f0c143984 (patch) | |
tree | fbec390538ff91adb0bee7116b3627524134db01 /drivers/scsi/lpfc/lpfc_bsg.c | |
parent | 98fc5dd952ecfd3abff7c06e7a55a5eab4dd95b7 (diff) |
[SCSI] lpfc 8.3.13: Add TX Queue Support for SLI4 ELS commands.
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_bsg.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_bsg.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_bsg.c b/drivers/scsi/lpfc/lpfc_bsg.c index dcf088262b20..55f984166dbc 100644 --- a/drivers/scsi/lpfc/lpfc_bsg.c +++ b/drivers/scsi/lpfc/lpfc_bsg.c | |||
@@ -377,6 +377,11 @@ lpfc_bsg_send_mgmt_cmd(struct fc_bsg_job *job) | |||
377 | 377 | ||
378 | if (rc == IOCB_SUCCESS) | 378 | if (rc == IOCB_SUCCESS) |
379 | return 0; /* done for now */ | 379 | return 0; /* done for now */ |
380 | else if (rc == IOCB_BUSY) | ||
381 | rc = EAGAIN; | ||
382 | else | ||
383 | rc = EIO; | ||
384 | |||
380 | 385 | ||
381 | /* iocb failed so cleanup */ | 386 | /* iocb failed so cleanup */ |
382 | pci_unmap_sg(phba->pcidev, job->request_payload.sg_list, | 387 | pci_unmap_sg(phba->pcidev, job->request_payload.sg_list, |
@@ -625,6 +630,10 @@ lpfc_bsg_rport_els(struct fc_bsg_job *job) | |||
625 | lpfc_nlp_put(ndlp); | 630 | lpfc_nlp_put(ndlp); |
626 | if (rc == IOCB_SUCCESS) | 631 | if (rc == IOCB_SUCCESS) |
627 | return 0; /* done for now */ | 632 | return 0; /* done for now */ |
633 | else if (rc == IOCB_BUSY) | ||
634 | rc = EAGAIN; | ||
635 | else | ||
636 | rc = EIO; | ||
628 | 637 | ||
629 | pci_unmap_sg(phba->pcidev, job->request_payload.sg_list, | 638 | pci_unmap_sg(phba->pcidev, job->request_payload.sg_list, |
630 | job->request_payload.sg_cnt, DMA_TO_DEVICE); | 639 | job->request_payload.sg_cnt, DMA_TO_DEVICE); |