diff options
author | 2015-12-14 16:01:57 -0800 | |
---|---|---|
committer | 2015-12-14 19:15:05 -0800 | |
commit | 2d0c3b5ad739697a68dc8a444f5b9f4817cf8f8f (patch) | |
tree | 2cc1038a9ab73a42ddde0a1b018b6ac5d4b129ed /drivers/hv/hv_snapshot.c | |
parent | Drivers: hv: vmbus: Force all channel messages to be delivered on CPU 0 (diff) | |
download | linux-2d0c3b5ad739697a68dc8a444f5b9f4817cf8f8f.tar.gz linux-2d0c3b5ad739697a68dc8a444f5b9f4817cf8f8f.tar.bz2 linux-2d0c3b5ad739697a68dc8a444f5b9f4817cf8f8f.zip |
Drivers: hv: utils: Invoke the poll function after handshake
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv/hv_snapshot.c')
-rw-r--r-- | drivers/hv/hv_snapshot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hv/hv_snapshot.c b/drivers/hv/hv_snapshot.c index 81882d4848bd..67def4a831c8 100644 --- a/drivers/hv/hv_snapshot.c +++ b/drivers/hv/hv_snapshot.c @@ -113,7 +113,7 @@ static int vss_handle_handshake(struct hv_vss_msg *vss_msg) default: return -EINVAL; } - vss_transaction.state = HVUTIL_READY; + hv_poll_channel(vss_transaction.recv_channel, vss_poll_wrapper); pr_debug("VSS: userspace daemon ver. %d registered\n", dm_reg_value); return 0; } |