File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
opal/mca/btl/openib/connect Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -554,6 +554,8 @@ static int udcm_endpoint_init_self_xrc (struct mca_btl_base_endpoint_t *lcl_ep)
554554
555555 lcl_ep -> endpoint_state = MCA_BTL_IB_CONNECTED ;
556556
557+ /* need to hold the endpoint lock before calling udcm_finish_connection */
558+ OPAL_THREAD_LOCK (& lcl_ep -> endpoint_lock );
557559 rc = udcm_finish_connection (lcl_ep );
558560 } while (0 );
559561 opal_mutex_unlock (& udep -> udep_lock );
@@ -594,6 +596,8 @@ static int udcm_endpoint_init_self (struct mca_btl_base_endpoint_t *lcl_ep)
594596
595597 lcl_ep -> endpoint_state = MCA_BTL_IB_CONNECTED ;
596598
599+ /* need to hold the endpoint lock before calling udcm_finish_connection */
600+ OPAL_THREAD_LOCK (& lcl_ep -> endpoint_lock );
597601 rc = udcm_finish_connection (lcl_ep );
598602
599603 return OPAL_SUCCESS ;
You can’t perform that action at this time.
0 commit comments