]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hv: do not lose pending heartbeat vmbus packets
authorLong Li <longli@microsoft.com>
Wed, 5 Oct 2016 23:57:46 +0000 (16:57 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 26 Feb 2017 05:16:28 +0000 (21:16 -0800)
commit9e81d8479181627ac3da76d9300f8e2d4ecd6cf4
tree86a1dfe521d14f4f7c2ce7daf64dffb8ba9efb9a
parent172b0514ade668f98c7fd50922292007ae067f23
hv: do not lose pending heartbeat vmbus packets

The host keeps sending heartbeat packets independent of the
guest responding to them.  Even though we respond to the heartbeat messages at
interrupt level, we can have situations where there maybe multiple heartbeat
messages pending that have not been responded to. For instance this occurs when the
VM is paused and the host continues to send the heartbeat messages.
Address this issue by draining and responding to all
the heartbeat messages that maybe pending.

Signed-off-by: Long Li <longli@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
CC: Stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Orabug: 25144648

(cherry picked from commit 407a3aee6ee2d2cb46d9ba3fc380bc29f35d020c)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
drivers/hv/hv_util.c