[DAPL2] DAPL Counters & 2.0.3 extensions to support counter retrieval.
[mirror/winof/.git] / ulp / dapl2 / dapl / common / dapl_evd_free.c
index c142b3a..2a17b72 100644 (file)
@@ -68,7 +68,6 @@ DAT_RETURN DAT_API dapl_evd_free (
     DAT_RETURN  dat_status;\r
 \r
     dapl_dbg_log (DAPL_DBG_TYPE_API, "dapl_evd_free (%p)\n", evd_handle);\r
-    DAPL_CNTR (DCNT_EVD_FREE);\r
 \r
     dat_status = DAT_SUCCESS;\r
     evd_ptr = (DAPL_EVD *)evd_handle;\r
@@ -79,6 +78,8 @@ DAT_RETURN DAT_API dapl_evd_free (
        goto bail;\r
     }\r
 \r
+    DAPL_CNTR(evd_ptr->header.owner_ia, DCNT_IA_EVD_FREE);\r
+\r
     if (dapl_os_atomic_read (&evd_ptr->evd_ref_count) != 0)\r
     {\r
        dat_status = DAT_ERROR (DAT_INVALID_STATE, DAT_INVALID_STATE_EVD_IN_USE);\r