Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prov/shm: Add memory barrier before updating resp for atomic
In smr_progress_cmd_atomic, resp is updated after calling smr_progress_inline/inject_atomic, which involves a memcpy in smr_do_atmoic for compare and fetch cases. Currently, there is no memory barrier between the memcpy and the resp update, this can make resp updated before the memcpy is done on ARM, which has a weak memory model. This patch adds a memory barrier before updating the resp to make the operations serialized. Signed-off-by: Shi Jin <sjina@amazon.com>
- Loading branch information