]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/3.0.1/staging-hv-vmbus-increase-the-timeout-value-in-the-vmbus.patch
5.1-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.0.1 / staging-hv-vmbus-increase-the-timeout-value-in-the-vmbus.patch
CommitLineData
e2cab6c9
GKH
1From 2dfde9644fe8c4a77f9c73f95b25d6300ca23b5d Mon Sep 17 00:00:00 2001
2From: "K. Y. Srinivasan" <kys@microsoft.com>
3Date: Thu, 16 Jun 2011 13:16:34 -0700
4Subject: Staging: hv: vmbus: Increase the timeout value in the vmbus
5 driver
6
7From: "K. Y. Srinivasan" <kys@microsoft.com>
8
9commit 2dfde9644fe8c4a77f9c73f95b25d6300ca23b5d upstream.
10
11On some loaded windows hosts, we have discovered that the host may not
12respond to guest requests within the specified time (one second)
13as evidenced by the guest timing out. Fix this problem by increasing
14the timeout to 5 seconds.
15
16It may be useful to apply this patch to the 3.0 kernel as well.
17
18Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
19Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
20Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
21Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
22
23---
24 drivers/staging/hv/channel.c | 2 +-
25 drivers/staging/hv/channel_mgmt.c | 2 +-
26 drivers/staging/hv/connection.c | 2 +-
27 3 files changed, 3 insertions(+), 3 deletions(-)
28
29--- a/drivers/staging/hv/channel.c
30+++ b/drivers/staging/hv/channel.c
31@@ -212,7 +212,7 @@ int vmbus_open(struct vmbus_channel *new
32 if (ret != 0)
33 goto Cleanup;
34
35- t = wait_for_completion_timeout(&openInfo->waitevent, HZ);
36+ t = wait_for_completion_timeout(&openInfo->waitevent, 5*HZ);
37 if (t == 0) {
38 err = -ETIMEDOUT;
39 goto errorout;
40--- a/drivers/staging/hv/channel_mgmt.c
41+++ b/drivers/staging/hv/channel_mgmt.c
42@@ -773,7 +773,7 @@ int vmbus_request_offers(void)
43 goto cleanup;
44 }
45
46- t = wait_for_completion_timeout(&msginfo->waitevent, HZ);
47+ t = wait_for_completion_timeout(&msginfo->waitevent, 5*HZ);
48 if (t == 0) {
49 ret = -ETIMEDOUT;
50 goto cleanup;
51--- a/drivers/staging/hv/connection.c
52+++ b/drivers/staging/hv/connection.c
53@@ -135,7 +135,7 @@ int vmbus_connect(void)
54 }
55
56 /* Wait for the connection response */
57- t = wait_for_completion_timeout(&msginfo->waitevent, HZ);
58+ t = wait_for_completion_timeout(&msginfo->waitevent, 5*HZ);
59 if (t == 0) {
60 spin_lock_irqsave(&vmbus_connection.channelmsg_lock,
61 flags);