On Thu, 24 May 2018 21:08:58 -0700 James Smart <jsmart2021@xxxxxxxxx> wrote: > Under large configurations, the driver would start to log > message 6065 - NVME out of buffers (exchanges). > > The driver is using the ndlp cmd_qdepth value when determining > the max outstanding ios for an adapter. This value, by default, > is set to 65536, which exceeds the maximum exchange counts > supported on an adapter. The ndlp cmd_qdepth has no relevance > and outstanding io count should be capped at the max exchange > count with IO requests beyond that level getting bounced back > with an EBUSY status so that they are retried by the block layer. > > Signed-off-by: Dick Kennedy <dick.kennedy@xxxxxxxxxxxx> > Signed-off-by: James Smart <james.smart@xxxxxxxxxxxx> > --- > drivers/scsi/lpfc/lpfc_attr.c | 7 +++++++ > drivers/scsi/lpfc/lpfc_nportdisc.c | 6 ++++++ > drivers/scsi/lpfc/lpfc_nvme.c | 23 +++++++++++++++++++---- > 3 files changed, 32 insertions(+), 4 deletions(-) > Reviewed-by: Hannes Reinecke <hare@xxxxxxxx> Cheers, Hannes