diff options
author | James Smart <jsmart2021@gmail.com> | 2017-05-15 15:20:46 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-05-16 21:22:22 -0400 |
commit | a8cf5dfeb4d84248c0ad12386ae0cb36ee21589a (patch) | |
tree | fb4580dc29cc56663b5702a688bf3518bd6ff7e6 /drivers/scsi/lpfc/lpfc.h | |
parent | 6c621a2229b084da0d926967f84b059a10c26ede (diff) | |
download | op-kernel-dev-a8cf5dfeb4d84248c0ad12386ae0cb36ee21589a.zip op-kernel-dev-a8cf5dfeb4d84248c0ad12386ae0cb36ee21589a.tar.gz |
scsi: lpfc: Added recovery logic for running out of NVMET IO context resources
Previous logic would just drop the IO.
Added logic to queue the IO to wait for an IO context resource from an
IO thats already in progress.
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc.h')
-rw-r--r-- | drivers/scsi/lpfc/lpfc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc.h b/drivers/scsi/lpfc/lpfc.h index 72641b1..c47bde6 100644 --- a/drivers/scsi/lpfc/lpfc.h +++ b/drivers/scsi/lpfc/lpfc.h @@ -170,6 +170,7 @@ struct rqb_dmabuf { struct lpfc_dmabuf dbuf; uint16_t total_size; uint16_t bytes_recv; + uint16_t idx; struct lpfc_queue *hrq; /* ptr to associated Header RQ */ struct lpfc_queue *drq; /* ptr to associated Data RQ */ }; |