[ewg] [PATCH]IPOIB/CM fix for bug# 906 -OFED-1.3

Pradeep Satyanarayana pradeeps at linux.vnet.ibm.com
Tue Feb 12 15:00:59 PST 2008


This patch fixes -fail to destroy ipoib rx QP (https://bugs.openfabrics.org/show_bug.cgi?id=906)
Hence the usecnt issue reported previously on ehca is solved and allows the qp to be destroyed.

As per Eli's request, I am splitting up the patches. This is first portion of yesterday's patch.
Tested on ppc64 machines with ehca and mthca.

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

--- ofa_kernel-1.3_a/drivers/infiniband/ulp/ipoib/ipoib_cm.c	2008-02-11 14:28:47.000000000 -0500
+++ ofa_kernel-1.3_b/drivers/infiniband/ulp/ipoib/ipoib_cm.c	2008-02-12 17:44:07.000000000 -0500
@@ -883,9 +883,9 @@ void ipoib_cm_dev_stop(struct net_device
 			/*
 			 * assume the HW is wedged and just free up everything.
 			 */
-			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 ewg mailing list