]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Drivers: hv_vmbus: Fix signal to host condition
authorChristopher Oo <t-chriso@microsoft.com>
Wed, 5 Aug 2015 07:52:40 +0000 (00:52 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 26 Feb 2016 02:29:04 +0000 (18:29 -0800)
commit5e92095e67c26fbc4ceacd86a343710c764b0f35
treecfe884cd5332b24d6dc57d0f0f01455b9c69ac97
parent87cc7448efb8214799197ad842d683bfaf49558a
Drivers: hv_vmbus: Fix signal to host condition

Fixes a bug where previously hv_ringbuffer_read would pass in the old
number of bytes available to read instead of the expected old read index
when calculating when to signal to the host that the ringbuffer is empty.
Since the previous write size is already saved, also changes the
hv_need_to_signal_on_read to use the previously read value rather than
recalculating it.

Signed-off-by: Christopher Oo <t-chriso@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit a5cca686ce0ef4909deaee4ed46dd991e3a9ece4)

Orabug: 21886720
Signed-off-by: Jason Luo <zhangqing.luo@oracle.com>
drivers/hv/ring_buffer.c