[IBAL] fix misplaced print to Event Log in 2229 patch. [mlnx: 4491]
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 28 Jun 2009 08:54:09 +0000 (08:54 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 28 Jun 2009 08:54:09 +0000 (08:54 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2272 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/al/al_common.c

index 3e8e2ef..d9dbd50 100644 (file)
@@ -529,11 +529,12 @@ sync_destroy_obj(
                                cl_status = cl_event_wait_on(\r
                                        &p_obj->event, AL_MAX_TIMEOUT_US, AL_WAIT_ALERTABLE );\r
                        } while( cl_status == CL_NOT_DONE );\r
+\r
+                       if ( p_obj->p_ci_ca && p_obj->p_ci_ca->h_ca )\r
+                               CL_PRINT_TO_EVENT_LOG( p_obj->p_ci_ca->h_ca->p_fdo, EVENT_IBBUS_ANY_ERROR,\r
+                                       ("IBAL stuck: AL object %s, ref_cnt: %d. Forcing object destruction.\n",\r
+                                       ib_get_obj_type( p_obj ), p_obj->ref_cnt));\r
                }\r
-               if ( p_obj->p_ci_ca && p_obj->p_ci_ca )\r
-                       CL_PRINT_TO_EVENT_LOG( p_obj->p_ci_ca->h_ca->p_fdo, EVENT_IBBUS_ANY_ERROR,\r
-                               ("IBAL stuck: AL object %s, ref_cnt: %d. Forcing object destruction.\n",\r
-                               ib_get_obj_type( p_obj ), p_obj->ref_cnt));\r
 \r
                CL_ASSERT( cl_status == CL_SUCCESS );\r
                if( cl_status != CL_SUCCESS )\r