Fix race condition during BTL TCP tear-down.
bot🏷️bug
bot:assign:@hjelmn
Этот коммит содержится в:
родитель
876257469e
Коммит
d2abff583e
@ -414,8 +414,8 @@ static int mca_btl_tcp_component_close(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* cleanup any pending events */
|
/* remove all pending events. Do not lock the tcp_events list as
|
||||||
MCA_BTL_TCP_CRITICAL_SECTION_ENTER(&mca_btl_tcp_component.tcp_lock);
|
the event themselves will unregister during the destructor. */
|
||||||
for(item = opal_list_get_first(&mca_btl_tcp_component.tcp_events);
|
for(item = opal_list_get_first(&mca_btl_tcp_component.tcp_events);
|
||||||
item != opal_list_get_end(&mca_btl_tcp_component.tcp_events);
|
item != opal_list_get_end(&mca_btl_tcp_component.tcp_events);
|
||||||
item = next) {
|
item = next) {
|
||||||
@ -424,7 +424,6 @@ static int mca_btl_tcp_component_close(void)
|
|||||||
opal_event_del(&event->event);
|
opal_event_del(&event->event);
|
||||||
OBJ_RELEASE(event);
|
OBJ_RELEASE(event);
|
||||||
}
|
}
|
||||||
MCA_BTL_TCP_CRITICAL_SECTION_LEAVE(&mca_btl_tcp_component.tcp_lock);
|
|
||||||
|
|
||||||
/* release resources */
|
/* release resources */
|
||||||
OBJ_DESTRUCT(&mca_btl_tcp_component.tcp_procs);
|
OBJ_DESTRUCT(&mca_btl_tcp_component.tcp_procs);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user