]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Mar 2016 23:07:16 +0000 (15:07 -0800)
commit2a383bcc68ad1437315eb4298a84cdde070a69bc
tree7ad2b16005a0fd8e7098312a8a68487897a06216
parent7db755f538b093335e43b8ca81667f898ca51ede
Drivers: hv: vmbus: Fix a Host signaling bug

commit 8599846d73997cdbccf63f23394d871cfad1e5e6 upstream.

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