OSDN Git Service

Drivers: hv: vmbus: On the read path cleanup the logic to interrupt the host
authorK. Y. Srinivasan <kys@microsoft.com>
Sun, 6 Nov 2016 21:14:18 +0000 (13:14 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Feb 2017 23:25:38 +0000 (15:25 -0800)
commit964dfbe3dd2d36f9d35018568e303d9847fc1026
tree862152fd482bd6d2c95a3f5debae8ed108eda78f
parente2fdf7841cb32128685ddcd6db7a51d0e3c3c739
Drivers: hv: vmbus: On the read path cleanup the logic to interrupt the host

commit 3372592a140db69fd63837e81f048ab4abf8111e upstream.

Signal the host when we determine the host is to be signaled -
on th read path. The currrent code determines the need to signal in the
ringbuffer code and actually issues the signal elsewhere. This can result
in the host viewing this interrupt as spurious since the host may also
poll the channel. Make the necessary adjustments.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Cc: Rolf Neugebauer <rolf.neugebauer@docker.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/channel.c
drivers/hv/hyperv_vmbus.h
drivers/hv/ring_buffer.c
include/linux/hyperv.h