[ofw] RE: PATCH: remove false Assert from the shutter code

Tzachi Dar tzachid at mellanox.co.il
Tue Nov 17 04:49:49 PST 2009


Applied on 2571.
 
Thanks
Tzachi


________________________________

	From: Tzachi Dar 
	Sent: Sunday, November 15, 2009 7:54 PM
	To: ofw at lists.openfabrics.org
	Cc: Windows Design
	Subject: PATCH: remove false Assert from the shutter code
	
	
	signed off by: Firas Mahamid
	 
	Index: shutter.h
	
===================================================================
	--- shutter.h (revision 2558)
	+++ shutter.h (working copy)
	@@ -110,8 +110,8 @@
	 static inline void shutter_alive(shutter_t * p_shutter)
	 {
	     long res = 0;
	-    ASSERT(p_shutter->cnt == -MAX_OPERATIONS);
	- // Mark the counter as locked
	+    
	+ // Mark the counter as alive
	  res = InterlockedExchangeAdd(&p_shutter->cnt, MAX_OPERATIONS);
	  ASSERT(res < 0);
	 }
	
	 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20091117/7fa713e5/attachment.html>


More information about the ofw mailing list