]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[IBAL] Add an assert to check cases where cl_obj_dref is causing a destroy of the...
authorTzachi Dar <tzachid@mellanox.co.il>
Wed, 1 Sep 2010 08:59:40 +0000 (08:59 +0000)
committerTzachi Dar <tzachid@mellanox.co.il>
Wed, 1 Sep 2010 08:59:40 +0000 (08:59 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1@2881 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/core/complib/cl_obj.c

index 259a5f53c34b72b0bd71425d7f61924b91b1ef7c..5f2563548452f82c40d8f4df918d152ce86277da 100644 (file)
@@ -485,6 +485,7 @@ cl_obj_deref(
        /* If the reference count went to 0, the object should be destroyed. */\r
        if( ref_cnt == 0 )\r
        {\r
+               CL_ASSERT( p_obj->state == CL_DESTROYING );\r
                if( p_obj->destroy_type == CL_DESTROY_ASYNC )\r
                {\r
                        /* Queue the object for asynchronous destruction. */\r