Staging: hv: vmbus: Change the memory barrier in hv_ringbuffer_write()
authorK. Y. Srinivasan <kys@microsoft.com>
Mon, 6 Jun 2011 22:49:53 +0000 (15:49 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 7 Jun 2011 20:45:56 +0000 (13:45 -0700)
Use the correct memory barrier interface in Change the memory barrier
in hv_ringbuffer_write().

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/ring_buffer.c

index 8b625533fe43bd1f36f862c9a0ae69dfbde49f73..42f76728429a0676dcd0cd3a82d2e10b55ee2fd0 100644 (file)
@@ -413,7 +413,7 @@ int hv_ringbuffer_write(struct hv_ring_buffer_info *outring_info,
                                             sizeof(u64));
 
        /* Make sure we flush all writes before updating the writeIndex */
-       mb();
+       smp_wmb();
 
        /* Now, update the write location */
        hv_set_next_write_location(outring_info, next_write_location);