btl/vader: move memory barrier to where it belongs
The write memory barrier was intended to precede setting a fast-box header but instead follows it. This commit moves the memory barrier to the intended location. Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov> (cherry picked from commit dca3516765a4b5927b1877ca59d952baec42bc4a)
Этот коммит содержится в:
родитель
cdc315c1ac
Коммит
b4f80e4e36
@ -1,6 +1,6 @@
|
|||||||
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
|
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2011-2015 Los Alamos National Security, LLC. All rights
|
* Copyright (c) 2011-2018 Los Alamos National Security, LLC. All rights
|
||||||
* reserved.
|
* reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
@ -51,8 +51,8 @@ static inline void mca_btl_vader_fbox_set_header (mca_btl_vader_fbox_hdr_t *hdr,
|
|||||||
uint16_t seq, uint32_t size)
|
uint16_t seq, uint32_t size)
|
||||||
{
|
{
|
||||||
mca_btl_vader_fbox_hdr_t tmp = {.data = {.tag = tag, .seq = seq, .size = size}};
|
mca_btl_vader_fbox_hdr_t tmp = {.data = {.tag = tag, .seq = seq, .size = size}};
|
||||||
hdr->ival = tmp.ival;
|
|
||||||
opal_atomic_wmb ();
|
opal_atomic_wmb ();
|
||||||
|
hdr->ival = tmp.ival;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* attempt to reserve a contiguous segment from the remote ep */
|
/* attempt to reserve a contiguous segment from the remote ep */
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user