On Thu, 24 May 2018 21:08:57 -0700 James Smart <jsmart2021@xxxxxxxxx> wrote: > MDS diagnostics fail because of frame count mismatch. > > Unavailability of SGL is the trigger for this issue. If ELS SGL > is not available to process MDS frame, IOCB is put in FCP txq > but not attempted to post afterwards. So, driver stops processing > incoming frames as it runs out of IOCB. lpfc_drain_txq attempts > to submit IOCBS that are queued in ELS txq but MDS frames are > posted to FCP WQ. > > Attempt to submit IOCBs that are present in FCP txq when MDS > loopback is running. > > Signed-off-by: Dick Kennedy <dick.kennedy@xxxxxxxxxxxx> > Signed-off-by: James Smart <james.smart@xxxxxxxxxxxx> > --- > drivers/scsi/lpfc/lpfc_hbadisc.c | 3 +-- > drivers/scsi/lpfc/lpfc_sli.c | 19 ++++++++++++++++--- > 2 files changed, 17 insertions(+), 5 deletions(-) > Reviewed-by: Hannes Reinecke <hare@xxxxxxxx> Cheers, Hannes