[PATCH v2 30/32] virtio_ring: update weak barriers to use __smp_xxx

2016-01-01 Thread Michael S. Tsirkin
virtio ring uses smp_wmb on SMP and wmb on !SMP, the reason for the later being that it might be talking to another kernel on the same SMP machine. This is exactly what __smp_XXX barriers do, so switch to these instead of homegrown ifdef hacks. Cc: Peter Zijlstra Cc:

Re: [PATCH v2 30/32] virtio_ring: update weak barriers to use __smp_xxx

2016-01-01 Thread Michael S. Tsirkin
On Fri, Jan 01, 2016 at 11:39:40AM +0200, Michael S. Tsirkin wrote: > virtio ring uses smp_wmb on SMP and wmb on !SMP, > the reason for the later being that it might be > talking to another kernel on the same SMP machine. > > This is exactly what __smp_XXX barriers do, > so switch to these