[ofw] [Patch][IPoIB]
Alex Naslednikov
xalex at mellanox.co.il
Mon Jan 3 07:51:03 PST 2011
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20110103/c7b59a0d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove_assert_ofw.patch
Type: application/octet-stream
Size: 895 bytes
Desc: remove_assert_ofw.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20110103/c7b59a0d/attachment.obj>
More information about the ofw
mailing list