OSDN Git Service

Drivers: hv: utils: Invoke the poll function after handshake
authorK. Y. Srinivasan <kys@microsoft.com>
Tue, 15 Dec 2015 00:01:57 +0000 (16:01 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Oct 2018 07:52:38 +0000 (09:52 +0200)
commitf91b8b1fd69c57764ffd404e33f565aa75357a1e
tree9e90da6884b8ca0d87c5d740c7e11c27379080e3
parent68a318670c663cac76ac359784d2f58d8d19cfc7
Drivers: hv: utils: Invoke the poll function after handshake

commit 2d0c3b5ad739697a68dc8a444f5b9f4817cf8f8f upstream.

When the handshake with daemon is complete, we should poll the channel since
during the handshake, we will not be processing any messages. This is a
potential bug if the host is waiting for a response from the guest.
I would like to thank Dexuan for pointing this out.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/hv_kvp.c
drivers/hv/hv_snapshot.c