]> git.baikalelectronics.ru Git - kernel.git/commit
Drivers: hv: vmbus: Fix a bug in hv_need_to_signal()
authorK. Y. Srinivasan <kys@microsoft.com>
Fri, 29 Mar 2013 21:30:38 +0000 (14:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Apr 2013 19:29:52 +0000 (12:29 -0700)
commitfcbe9a90a3cc5197b0c680a89d00e987d912c8ff
tree18936a4994cce2e1a0c8a45577e45611077a9e45
parenta2265058014d489249df4a6a8c785e0a960c2611
Drivers: hv: vmbus: Fix a bug in hv_need_to_signal()

As part of updating the vmbus protocol, the function hv_need_to_signal()
was introduced. This functions helps optimize signalling from guest to
host. The newly added memory barrier is needed to ensure that we correctly
decide when to signal the host.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Reported-by: Olaf Hering <olh@suse.de>
Cc: Stable <stable@vger.kernel.org> (V3.8+)
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/ring_buffer.c