]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/3.0.1/staging-hv-storvsc-increase-the-timeout-value-in-the.patch
5.1-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.0.1 / staging-hv-storvsc-increase-the-timeout-value-in-the.patch
1 From 46d2eb6d82ef44be58ae192c35e8cd52485f02eb Mon Sep 17 00:00:00 2001
2 From: "K. Y. Srinivasan" <kys@microsoft.com>
3 Date: Thu, 16 Jun 2011 13:16:36 -0700
4 Subject: Staging: hv: storvsc: Increase the timeout value in the
5 storvsc driver
6
7 From: "K. Y. Srinivasan" <kys@microsoft.com>
8
9 commit 46d2eb6d82ef44be58ae192c35e8cd52485f02eb upstream.
10
11 On some loaded windows hosts, we have discovered that the host may not
12 respond to guest requests within the specified time (one second)
13 as evidenced by the guest timing out. Fix this problem by increasing
14 the timeout to 5 seconds.
15
16 It may be useful to apply this patch to the 3.0 kernel as well.
17 the 3.0 kernel as well.
18
19 Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
20 Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
21 Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
22 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
23
24 ---
25 drivers/staging/hv/storvsc.c | 8 ++++----
26 drivers/staging/hv/storvsc_drv.c | 2 +-
27 2 files changed, 5 insertions(+), 5 deletions(-)
28
29 --- a/drivers/staging/hv/storvsc.c
30 +++ b/drivers/staging/hv/storvsc.c
31 @@ -135,7 +135,7 @@ static int storvsc_channel_init(struct h
32 if (ret != 0)
33 goto cleanup;
34
35 - t = wait_for_completion_timeout(&request->wait_event, HZ);
36 + t = wait_for_completion_timeout(&request->wait_event, 5*HZ);
37 if (t == 0) {
38 ret = -ETIMEDOUT;
39 goto cleanup;
40 @@ -163,7 +163,7 @@ static int storvsc_channel_init(struct h
41 if (ret != 0)
42 goto cleanup;
43
44 - t = wait_for_completion_timeout(&request->wait_event, HZ);
45 + t = wait_for_completion_timeout(&request->wait_event, 5*HZ);
46 if (t == 0) {
47 ret = -ETIMEDOUT;
48 goto cleanup;
49 @@ -192,7 +192,7 @@ static int storvsc_channel_init(struct h
50 if (ret != 0)
51 goto cleanup;
52
53 - t = wait_for_completion_timeout(&request->wait_event, HZ);
54 + t = wait_for_completion_timeout(&request->wait_event, 5*HZ);
55 if (t == 0) {
56 ret = -ETIMEDOUT;
57 goto cleanup;
58 @@ -222,7 +222,7 @@ static int storvsc_channel_init(struct h
59 if (ret != 0)
60 goto cleanup;
61
62 - t = wait_for_completion_timeout(&request->wait_event, HZ);
63 + t = wait_for_completion_timeout(&request->wait_event, 5*HZ);
64 if (t == 0) {
65 ret = -ETIMEDOUT;
66 goto cleanup;
67 --- a/drivers/staging/hv/storvsc_drv.c
68 +++ b/drivers/staging/hv/storvsc_drv.c
69 @@ -393,7 +393,7 @@ static int storvsc_host_reset(struct hv_
70 if (ret != 0)
71 goto cleanup;
72
73 - t = wait_for_completion_timeout(&request->wait_event, HZ);
74 + t = wait_for_completion_timeout(&request->wait_event, 5*HZ);
75 if (t == 0) {
76 ret = -ETIMEDOUT;
77 goto cleanup;