From: K. Y. Srinivasan Date: Mon, 6 Jun 2011 22:49:53 +0000 (-0700) Subject: Staging: hv: vmbus: Change the memory barrier in hv_ringbuffer_write() X-Git-Tag: MMI-PSA29.97-13-9~18845^2~568^2~53 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e690b5a9be26965543b7252492ed22052af960b6;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Staging: hv: vmbus: Change the memory barrier in hv_ringbuffer_write() Use the correct memory barrier interface in Change the memory barrier in hv_ringbuffer_write(). Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang Signed-off-by: Abhishek Kane Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/ring_buffer.c b/drivers/staging/hv/ring_buffer.c index 8b625533fe43..42f76728429a 100644 --- a/drivers/staging/hv/ring_buffer.c +++ b/drivers/staging/hv/ring_buffer.c @@ -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);