Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit 45a8e8d

Browse files
committed
Merge pull request #770 from hjelmn/fifo_fix
opal/fifo: add missing memory barrier
2 parents 36d7855 + 9abccbd commit 45a8e8d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

opal/class/opal_fifo.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ static inline opal_list_item_t *opal_fifo_push_atomic (opal_fifo_t *fifo,
189189

190190
item->opal_list_next = &fifo->opal_fifo_ghost;
191191

192+
opal_atomic_wmb ();
193+
192194
/* try to get the tail */
193195
tail_item = opal_atomic_swap_ptr (&fifo->opal_fifo_tail.data.item, item);
194196

0 commit comments

Comments
 (0)