]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitae9fb68148b58f11b303f22a2abada0c22b67d29
tree1fbaa549d012e2ba9cd327ed6ac5dbcc773a0244
parentbc5f33f00b0514a86d7ee9fef67b22bb69472ccc
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