diff options
author | sephe <sephe@FreeBSD.org> | 2016-06-15 05:31:35 +0000 |
---|---|---|
committer | sephe <sephe@FreeBSD.org> | 2016-06-15 05:31:35 +0000 |
commit | 9b1cd877203b217bfe44782611a7be9108761e98 (patch) | |
tree | ecefb0ad9029d61c346a6ee19e44e6bf7b0c9201 /contrib/diff/lib/prepargs.c | |
parent | 6bb446b900c1a249fac0ca1fa639ca5c3e5b3417 (diff) | |
download | FreeBSD-src-9b1cd877203b217bfe44782611a7be9108761e98.zip FreeBSD-src-9b1cd877203b217bfe44782611a7be9108761e98.tar.gz |
MFC 296180,297634
296180
hyperv: Use proper fence function to keep store-load order for msgs
sfence only makes sure about the store-store order, which is not
sufficient here. Use atomic_thread_fence_seq_cst() as suggested
jhb and kib (a locked op in the nutshell, which should have the
Reviewed by: jhb, kib, Jun Su <junsu microsoft com>
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D5436
297634
hyperv: Use mb() instead of atomic_thread_fence_seq_cst()
Since atomic_thread_fence_seq_cst() will become compiler fence on UP kernel.
Reviewed by: kib, Dexuan Cui <decui microsoft com>
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D5852
Diffstat (limited to 'contrib/diff/lib/prepargs.c')
0 files changed, 0 insertions, 0 deletions