Skip to content

Commit 5a4f8a0

Browse files
committed
btl/uct: downgrade endpoing lock from recursive
Recursive locks are not needed for the endpoint lock. This commit modifies the lock to be opal_mutex_t.
1 parent 7b87df1 commit 5a4f8a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

opal/mca/btl/uct/btl_uct_endpoint.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ static void mca_btl_uct_endpoint_construct(mca_btl_uct_endpoint_t *endpoint)
2424
memset(endpoint->uct_eps, 0,
2525
sizeof(endpoint->uct_eps[0]) * mca_btl_uct_component.num_contexts_per_module);
2626
endpoint->conn_ep = NULL;
27-
OBJ_CONSTRUCT(&endpoint->ep_lock, opal_recursive_mutex_t);
27+
OBJ_CONSTRUCT(&endpoint->ep_lock, opal_mutex_t);
2828
}
2929

3030
static void mca_btl_uct_endpoint_destruct(mca_btl_uct_endpoint_t *endpoint)

opal/mca/btl/uct/btl_uct_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ struct mca_btl_base_endpoint_t {
288288
opal_proc_t *ep_proc;
289289

290290
/** mutex to protect this structure */
291-
opal_recursive_mutex_t ep_lock;
291+
opal_mutex_t ep_lock;
292292

293293
/** cached connection endpoint */
294294
mca_btl_uct_connection_ep_t *conn_ep;

0 commit comments

Comments
 (0)