[ofw] patch: Add an assert to check cases where cl_obj_dref is causing a destroy of the object without destroy being called first
Tzachi Dar
tzachid at mellanox.co.il
Wed Sep 1 02:00:16 PDT 2010
Applied on 2881.
Thanks
Tzachi
From: ofw-bounces at lists.openfabrics.org [mailto:ofw-bounces at lists.openfabrics.org] On Behalf Of Tzachi Dar
Sent: Tuesday, August 31, 2010 10:58 AM
To: ofw at lists.openfabrics.org
Subject: [ofw] patch: Add an assert to check cases where cl_obj_dref is causing a destroy of the object without destroy being called first
Index: b:/users/tzachid/MLNX_WinOF-2_1_2/core/complib/cl_obj.c
===================================================================
--- b:/users/tzachid/MLNX_WinOF-2_1_2/core/complib/cl_obj.c (revision 6356)
+++ b:/users/tzachid/MLNX_WinOF-2_1_2/core/complib/cl_obj.c (revision 6357)
@@ -485,6 +485,7 @@
/* If the reference count went to 0, the object should be destroyed. */
if( ref_cnt == 0 )
{
+ CL_ASSERT( p_obj->state == CL_DESTROYING );
if( p_obj->destroy_type == CL_DESTROY_ASYNC )
{
/* Queue the object for asynchronous destruction. */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20100901/79b68170/attachment.html>
More information about the ofw
mailing list