]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Drivers: hv: vmbus: Fix a Host signaling bug
authorK. Y. Srinivasan <kys@microsoft.com>
Tue, 15 Dec 2015 00:01:54 +0000 (16:01 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 26 Feb 2016 02:35:28 +0000 (18:35 -0800)
commit02a6c725f756cb186c0097fb174d583a0d0b4d9d
treef373a1aae2f85cba3177dcc7e803ada69fef22ad
parentdc7880c6a8c25da65c99f3155f6854dad311c56f
Drivers: hv: vmbus: Fix a Host signaling bug

Currently we have two policies for deciding when to signal the host:
One based on the ring buffer state and the other based on what the
VMBUS client driver wants to do. Consider the case when the client
wants to explicitly control when to signal the host. In this case,
if the client were to defer signaling, we will not be able to signal
the host subsequently when the client does want to signal since the
ring buffer state will prevent the signaling. Implement logic to
have only one signaling policy in force for a given channel.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Tested-by: Haiyang Zhang <haiyangz@microsoft.com>
Cc: <stable@vger.kernel.org> # v4.2+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 8599846d73997cdbccf63f23394d871cfad1e5e6)

Orabug: 22725962
Signed-off-by: Jason Luo <zhangqing.luo@oracle.com>
drivers/hv/channel.c
include/linux/hyperv.h