Applied at 3082

From: Alex Naslednikov
Sent: Monday, January 03, 2011 5:51 PM
To: Alex Naslednikov; [email protected]
Subject: RE: [ofw][Patch][IPoIB]

The situation described by the ASSERT can happen:
Shutdown is called while reset process wasn't completed yet
Index: ulp/ipoib_NDIS6_CM/kernel/ipoib_driver.cpp
===================================================================
--- ulp/ipoib_NDIS6_CM/kernel/ipoib_driver.cpp             (revision 3053)
+++ ulp/ipoib_NDIS6_CM/kernel/ipoib_driver.cpp          (working copy)
@@ -3296,7 +3296,13 @@
                                // Wait until NDIS will return all indicated 
NBLs that were received
                                // Avoid shutting the shutter twice
                                KeAcquireInStackQueuedSpinLock( &g_ipoib.lock, 
&hdl );
-                              ASSERT ( !(p_adapter->ipoib_state & 
IPOIB_RESET_OR_DOWN) );
+
+                             if ( p_adapter->ipoib_state & IPOIB_RESET_OR_DOWN 
)
+                             {
+                                             IPOIB_PRINT( TRACE_LEVEL_WARNING, 
IPOIB_DBG_ALL,
+                                             ("Shutdown occurred while reset 
process wasn't completed yet\n") );
+                             }
+
                                if ( p_adapter->ipoib_state == IPOIB_RUNNING ) 
{ //ensure that there was no active reset
                                                shutter_shut( 
&p_adapter->recv_shutter );
                                                // Notify that shutter was 
already shut

Alexander (XaleX) Naslednikov
SW Networking Team
Mellanox Technologies


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

Reply via email to