Skip to content

Commit 54c5aac

Browse files
authored
Merge pull request #5543 from jsquyres/pr/v4.0.x/vader-fix
v4.0.x: btl/vader: move memory barrier to where it belongs
2 parents cdc315c + b4f80e4 commit 54c5aac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opal/mca/btl/vader/btl_vader_fbox.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
22
/*
3-
* Copyright (c) 2011-2015 Los Alamos National Security, LLC. All rights
3+
* Copyright (c) 2011-2018 Los Alamos National Security, LLC. All rights
44
* reserved.
55
* $COPYRIGHT$
66
*
@@ -51,8 +51,8 @@ static inline void mca_btl_vader_fbox_set_header (mca_btl_vader_fbox_hdr_t *hdr,
5151
uint16_t seq, uint32_t size)
5252
{
5353
mca_btl_vader_fbox_hdr_t tmp = {.data = {.tag = tag, .seq = seq, .size = size}};
54-
hdr->ival = tmp.ival;
5554
opal_atomic_wmb ();
55+
hdr->ival = tmp.ival;
5656
}
5757

5858
/* attempt to reserve a contiguous segment from the remote ep */

0 commit comments

Comments
 (0)