summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_disc.h
diff options
context:
space:
mode:
authorDick Kennedy <dick.kennedy@broadcom.com>2017-08-24 01:55:35 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2017-08-25 04:29:37 +0200
commitcd22d6057c0cf1d6753a11c19c1cb62ca3f8fb29 (patch)
tree0e4dad47449ea92cfbba266f4bedc87ad307d2b7 /drivers/scsi/lpfc/lpfc_disc.h
parentscsi: lpfc: convert info messages to standard messages (diff)
downloadlinux-cd22d6057c0cf1d6753a11c19c1cb62ca3f8fb29.tar.xz
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_disc.h')
0 files changed, 0 insertions, 0 deletions