vhost-net: switch to smp barriers
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 1 Feb 2010 07:21:02 +0000 (07:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Feb 2010 06:42:53 +0000 (22:42 -0800)
commit5659338c88963ea791118e5e11e314b24f90c3eb
tree1fbaa549d012e2ba9cd327ed6ac5dbcc773a0244
parentf10a1f2e7e93a35cb603b63090ff0e70a576a641
vhost-net: switch to smp barriers

vhost-net only uses memory barriers to control SMP effects
(communication with userspace potentially running on a different CPU),
so it should use SMP barriers and not mandatory barriers for memory
access ordering, as suggested by Documentation/memory-barriers.txt

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/vhost/vhost.c