[IBAL] Fix ib_sync_destroy usage for kernel clients.
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 6 Sep 2006 19:56:26 +0000 (19:56 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 6 Sep 2006 19:56:26 +0000 (19:56 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@483 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/al/al_common.c
core/al/user/al_exports.src
inc/iba/ib_al.h

index 5300bf4..8323ec4 100644 (file)
@@ -127,7 +127,7 @@ const char* ib_obj_type_str[] =
  * Used to force synchronous destruction of AL objects.\r
  */\r
 void\r
-ib_sync_destroy(\r
+__sync_destroy_cb(\r
        IN                              void                                            *context )\r
 {\r
        UNUSED_PARAM( context );\r
@@ -405,7 +405,7 @@ deref_al_obj(
        if( ref_cnt == 0 )\r
        {\r
                if( p_obj->pfn_destroy == async_destroy_obj &&\r
-                       p_obj->user_destroy_cb != ib_sync_destroy )\r
+                       p_obj->user_destroy_cb != __sync_destroy_cb )\r
                {\r
                        /* Queue the object for asynchronous destruction. */\r
 #if AL_OBJ_PRIVATE_ASYNC_PROC\r
@@ -467,7 +467,7 @@ async_destroy_obj(
        AL_ENTER( AL_DBG_AL_OBJ );\r
 \r
        if( pfn_destroy_cb == ib_sync_destroy )\r
-               sync_destroy_obj( p_obj, pfn_destroy_cb );\r
+               sync_destroy_obj( p_obj, __sync_destroy_cb );\r
        else if( destroy_obj( p_obj, pfn_destroy_cb ) )\r
                deref_al_obj( p_obj );  /* Only destroy the object once. */\r
 \r
index cd0c005..83f82ac 100644 (file)
@@ -211,7 +211,6 @@ ib_smp_is_response
 ib_subscribe\r
 ib_switch_info_clear_state_change\r
 ib_switch_info_get_state_change\r
-ib_sync_destroy\r
 ib_unsubscribe\r
 ib_vl_arb_element_get_vl\r
 ib_vl_arb_element_set_vl\r
index b1ccb40..75132f1 100644 (file)
@@ -433,9 +433,7 @@ typedef void
 *\r
 * SYNOPSIS\r
 */\r
-AL_EXPORT void AL_API\r
-ib_sync_destroy(\r
-       IN                              void                                            *context );\r
+static const ib_pfn_destroy_cb_t ib_sync_destroy = (ib_pfn_destroy_cb_t)-1i64;\r
 /*\r
 * PARAMETERS\r
 *      Not Applicable.\r