diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2009-07-16 12:34:20 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 12:01:48 -0700 |
commit | 28b6ca9c07787885b89972929f45084eb3197d98 (patch) | |
tree | a6b79999e6d0b1151e42efd1d6ff81f8c5a62b6a /drivers/staging/hv/RingBuffer.c | |
parent | b4362c9c1fe8bec487e275f92fdf57c585ac236a (diff) |
Staging: hv: osd: remove MemoryFence wrapper
Use the "real" mb call instead of a wrapper function.
Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/RingBuffer.c')
-rw-r--r-- | drivers/staging/hv/RingBuffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/hv/RingBuffer.c b/drivers/staging/hv/RingBuffer.c index 21fc4cc6326d..e99546835f28 100644 --- a/drivers/staging/hv/RingBuffer.c +++ b/drivers/staging/hv/RingBuffer.c @@ -411,7 +411,7 @@ RingBufferWrite( sizeof(u64)); // Make sure we flush all writes before updating the writeIndex - MemoryFence(); + mb(); // Now, update the write location SetNextWriteLocation(OutRingInfo, nextWriteLocation); @@ -532,7 +532,7 @@ RingBufferRead( // Make sure all reads are done before we update the read index since // the writer may start writing to the read area once the read index is updated - MemoryFence(); + mb(); // Update the read index SetNextReadLocation(InRingInfo, nextReadLocation); |