opal_lifo: add missing memory barrier to 64/32-bit atomic lifo
implementation Need to ensure the head write is complete before updating the item's next pointer. References #371
Этот коммит содержится в:
родитель
030e9bc714
Коммит
298f238096
@ -208,6 +208,8 @@ static inline opal_list_item_t *opal_lifo_pop_atomic (opal_lifo_t* lifo)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
opal_atomic_wmb ();
|
||||
|
||||
item->opal_list_next = NULL;
|
||||
return item;
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user