This patch was applied at 2946.
Please, note that there are still no functionality changes, because this code 
is still inactive (CM flow)
However, when CM flow will be active this change is essential because of 
setting this spinlock at calling thread.



-----Original Message-----
From: Smith, Stan [mailto:[email protected]] 
Sent: Wednesday, September 22, 2010 2:12 AM
To: Alex Naslednikov
Cc: [email protected]
Subject: [PATCH] stop leaking spin lock


Missing spin lock free call for remove_lock.

signed-off-by: stan smith <[email protected]>

--- a/ulp/ipoib_NDIS6_CM/kernel/ipoib_port.cpp  Tue Sep 21 17:03:57 2010
+++ b/ulp/ipoib_NDIS6_CM/kernel/ipoib_port.cpp  Tue Sep 21 17:03:19 2010
@@ -6131,8 +6131,9 @@
                        cl_obj_destroy( &p_endpt->obj );
                }
        }
-
        p_port->endpt_mgr.thread_is_done++;
+
+       NdisFreeSpinLock( &p_port->endpt_mgr.remove_lock );
        NdisFreeSpinLock( &p_port->endpt_mgr.conn_lock );

        IPOIB_PRINT_EXIT( TRACE_LEVEL_INFORMATION, IPOIB_DBG_INIT,
_______________________________________________
ofw mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw

Reply via email to