[ofa-general] [PATCH] IPoIB/CM fix for bug#906

Pradeep Satyanarayana pradeeps at linux.vnet.ibm.com
Wed Feb 13 11:50:03 PST 2008


This is a patch against the for-2.25 tree for bug#906 -fail to destroy ipoib rx QP 
https://bugs.openfabrics.org/show_bug.cgi?id=906

This problem was discovered during OFED 1.3 testing and a patch has been submitted
for the OFED 1.3 tree. 

One can follow the OFED discussions by following the thread at:
http://lists.openfabrics.org/pipermail/ewg/2008-February/005886.html

Roland, can this be queued for 2.6.25?


Signed-off-by: Pradeep Satyanarayana <pradeeps at linux.vnet.ibm.com>
---

--- a/drivers/infiniband/ulp/ipoib/ipoib_cm.c	2008-02-13 14:14:47.000000000 -0500
+++ b/drivers/infiniband/ulp/ipoib/ipoib_cm.c	2008-02-13 14:01:55.000000000 -0500
@@ -861,11 +861,11 @@ void ipoib_cm_dev_stop(struct net_device
 			ipoib_warn(priv, "RX drain timing out\n");
 
 			/*
-			 * assume the HW is wedged and just free up everything.
+			 * assume error and move to rx_reap list
 			 */
-			list_splice_init(&priv->cm.rx_flush_list, &list);
-			list_splice_init(&priv->cm.rx_error_list, &list);
-			list_splice_init(&priv->cm.rx_drain_list, &list);
+			list_splice_init(&priv->cm.rx_flush_list, &priv->cm.rx_reap_list);
+			list_splice_init(&priv->cm.rx_error_list, &priv->cm.rx_reap_list);
+			list_splice_init(&priv->cm.rx_drain_list, &priv->cm.rx_reap_list);
 			break;
 		}
 		spin_unlock_irq(&priv->lock);




More information about the general mailing list