summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_nportdisc.c
diff options
context:
space:
mode:
authorDick Kennedy <dick.kennedy@broadcom.com>2017-08-23 16:55:35 -0700
committerMartin K. Petersen <martin.petersen@oracle.com>2017-08-24 22:29:37 -0400
commitcd22d6057c0cf1d6753a11c19c1cb62ca3f8fb29 (patch)
tree0e4dad47449ea92cfbba266f4bedc87ad307d2b7 /drivers/scsi/lpfc/lpfc_nportdisc.c
parentffb70cd6b64ffcbb5f0fb0d9f2bac29a6dffc81b (diff)
downloadblackbird-obmc-linux-cd22d6057c0cf1d6753a11c19c1cb62ca3f8fb29.tar.gz
blackbird-obmc-linux-cd22d6057c0cf1d6753a11c19c1cb62ca3f8fb29.zip
scsi: lpfc: Correct return error codes to align with nvme_fc transport
Modify driver return error codes to align with host nvme transport. Driver isn't returning Exxx error codes to properly reflect out of resource or connectivity conditions (-EBUSY), yet there were hard error conditions returning -EBUSY. Ensure the following situations return the proper return code: - Temporary failures or temporary resource availability: -EBUSY - Connectivity issues: -ENODEV All others are treated as hard errors and return an -Exxx value that indicates the type of error. Also, lpfc_sli4_issue_wqe() was modified to not translate error from -Exxx to WQE state. This allows lpfc_nvme_fcp_io_submit() routine to just return whatever -E value was returned from other routines. Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com> Signed-off-by: James Smart <james.smart@broadcom.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_nportdisc.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud