Re: [PATCH 1/1] drivers: hv: switch to use mb() instead of smp_mb()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 23, 2014 at 11:44:49AM +0800, Qiang Huang wrote:
> From: Jason Wang <jasowang@xxxxxxxxxx>
> 
> commit 35848f68b07df3f917cb13fc3c134718669f569b upstream.
> 
> Even if guest were compiled without SMP support, it could not assume that host
> wasn't. So switch to use mb() instead of smp_mb() to force memory barriers for
> UP guest.
> 
> Signed-off-by: Jason Wang <jasowang@xxxxxxxxxx>
> Cc: Haiyang Zhang <haiyangz@xxxxxxxxxxxxx>
> Signed-off-by: K. Y. Srinivasan <kys@xxxxxxxxxxxxx>
> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> [bwh: Backported to 3.2:
>  - Drop changes to functions that don't exist here
>  - hv_ringbuffer_write() has only a write memory barrier]
> Signed-off-by: Ben Hutchings <ben@xxxxxxxxxxxxxxx>
> [hq: Backported to 3.4:
>  - Add the change in hv_ringbuffer_read]
> Signed-off-by: Qiang Huang <h.huangqiang@xxxxxxxxxx>
> ---
>  drivers/hv/ring_buffer.c | 4 ++--
>  drivers/hv/vmbus_drv.c   | 2 +-
>  2 files changed, 3 insertions(+), 3 deletions(-)

Applied, thanks.

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]