scsi: lpfc: Fix IO submission if WQ is full
authorJames Smart <jsmart2021@gmail.com>
Sat, 4 Mar 2017 17:30:28 +0000 (09:30 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 7 Mar 2017 04:04:22 +0000 (23:04 -0500)
commita5068b46958870633ea340692f301507ef78d00b
tree3c441c93581d207601e49b067f5faf66feb51e86
parentb06a622ffe8dddcc09dad23dc768f7d1540fb4d6
scsi: lpfc: Fix IO submission if WQ is full

For both initiator and target: if WQ is full, return -EBUSY.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_nvme.c
drivers/scsi/lpfc/lpfc_nvmet.c