Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F176990845
D5852.1793705650.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D5852.1793705650.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D5852: hyperv: Use mb() instead of atomic_thread_fence_seq_cst()
Attached
Detach File
Event Timeline