svn commit: r347742 - stable/12/sys/ofed/drivers/infiniband/ulp/ipoib
Hans Petter Selasky
hselasky at FreeBSD.org
Thu May 16 16:04:24 UTC 2019
Author: hselasky
Date: Thu May 16 16:04:23 2019
New Revision: 347742
URL: https://svnweb.freebsd.org/changeset/base/347742
Log:
MFC r347278:
Fix endless loop in ipoib_poll().
ib_req_notify_cq may return negative value which will indicate a
failure. In the case of uncorrectable error, we will end up in an
endless loop. Fix that, by going to another loop with poll_more
only if there is anything left to poll.
Submitted by: slavash@
Sponsored by: Mellanox Technologies
Modified:
stable/12/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_ib.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_ib.c
==============================================================================
--- stable/12/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_ib.c Thu May 16 16:03:46 2019 (r347741)
+++ stable/12/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_ib.c Thu May 16 16:04:23 2019 (r347742)
@@ -409,7 +409,7 @@ poll_more:
spin_unlock(&priv->drain_lock);
if (ib_req_notify_cq(priv->recv_cq,
- IB_CQ_NEXT_COMP | IB_CQ_REPORT_MISSED_EVENTS))
+ IB_CQ_NEXT_COMP | IB_CQ_REPORT_MISSED_EVENTS) > 0)
goto poll_more;
}
More information about the svn-src-all
mailing list