hg-verbs-no-lock.patch 1.36 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
diff --git a/src/na/na_ofi.c b/src/na/na_ofi.c
index 379f1eb..d883d0b 100644
--- a/src/na/na_ofi.c
+++ b/src/na/na_ofi.c
@@ -278,16 +278,14 @@ struct na_ofi_op_id {
 static NA_INLINE void
 na_ofi_domain_lock(struct na_ofi_domain *domain)
 {
-    if (domain->nod_prov_type == NA_OFI_PROV_VERBS ||
-        domain->nod_prov_type == NA_OFI_PROV_PSM2)
+    if (domain->nod_prov_type == NA_OFI_PROV_PSM2)
         hg_thread_mutex_lock(&domain->nod_mutex);
 }
 
 static NA_INLINE void
 na_ofi_domain_unlock(struct na_ofi_domain *domain)
 {
-    if (domain->nod_prov_type == NA_OFI_PROV_VERBS ||
-        domain->nod_prov_type == NA_OFI_PROV_PSM2)
+    if (domain->nod_prov_type == NA_OFI_PROV_PSM2)
         hg_thread_mutex_unlock(&domain->nod_mutex);
 }
 
@@ -297,8 +295,6 @@ na_ofi_class_lock(na_class_t *na_class)
     struct na_ofi_private_data *priv = NA_OFI_PRIVATE_DATA(na_class);
     struct na_ofi_domain *domain = priv->nop_domain;
 
-    if (domain->nod_prov_type == NA_OFI_PROV_VERBS)
-        hg_thread_mutex_lock(&priv->nop_mutex);
 }
 
 static NA_INLINE void
@@ -306,9 +302,6 @@ na_ofi_class_unlock(na_class_t *na_class)
 {
     struct na_ofi_private_data *priv = NA_OFI_PRIVATE_DATA(na_class);
     struct na_ofi_domain *domain = priv->nop_domain;
-
-    if (domain->nod_prov_type == NA_OFI_PROV_VERBS)
-        hg_thread_mutex_unlock(&priv->nop_mutex);
 }
 
 static NA_INLINE na_bool_t