]> git.karo-electronics.de Git - karo-tx-linux.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>
Wed, 8 May 2013 03:33:08 +0000 (20:33 -0700)
commit8c7fc2f0ebc489d68c3c1e4d44a1a635f0c043f8
treeb179acc4c8ad24035b6552ba3782bd6ddb7e76af
parent5504e82764f41969a5f4e29af9f950f79ec3538a
Drivers: hv: vmbus: Fix a bug in hv_need_to_signal()

commit 288fa3e022eb85fa151e0f9bcd15caeb81679af6 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/ring_buffer.c