Page MenuHomeFreeBSD

D5852.1793705650.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D5852.1793705650.diff

Index: head/sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c
===================================================================
--- head/sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c
+++ head/sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c
@@ -117,8 +117,12 @@
* message_pending and EOMing. Otherwise, the EOMing will
* not deliver any more messages
* since there is no empty slot
+ *
+ * NOTE:
+ * mb() is used here, since atomic_thread_fence_seq_cst()
+ * will become compler fence on UP kernel.
*/
- atomic_thread_fence_seq_cst();
+ mb();
if (msg->header.message_flags.u.message_pending) {
/*
@@ -190,8 +194,12 @@
* message_pending and EOMing. Otherwise, the EOMing will
* not deliver any more messages
* since there is no empty slot
+ *
+ * NOTE:
+ * mb() is used here, since atomic_thread_fence_seq_cst()
+ * will become compler fence on UP kernel.
*/
- atomic_thread_fence_seq_cst();
+ mb();
if (msg->header.message_flags.u.message_pending) {
/*

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 3, 11:34 AM (2 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41365905
Default Alt Text
D5852.1793705650.diff (1 KB)

Event Timeline