Commit 2dfde964 authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by Greg Kroah-Hartman

Staging: hv: vmbus: Increase the timeout value in the vmbus driver

On some loaded windows hosts, we have discovered that the host may not
respond to guest requests within the specified time (one second)
as evidenced by the guest timing out. Fix this problem by increasing
the timeout to 5 seconds.

It may be useful to apply this patch to the 3.0 kernel as well.
Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarHank Janssen <hjanssen@microsoft.com>
Cc: stable <stable@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent df505677
...@@ -211,7 +211,7 @@ int vmbus_open(struct vmbus_channel *newchannel, u32 send_ringbuffer_size, ...@@ -211,7 +211,7 @@ int vmbus_open(struct vmbus_channel *newchannel, u32 send_ringbuffer_size,
if (ret != 0) if (ret != 0)
goto cleanup; goto cleanup;
t = wait_for_completion_timeout(&openInfo->waitevent, HZ); t = wait_for_completion_timeout(&openInfo->waitevent, 5*HZ);
if (t == 0) { if (t == 0) {
err = -ETIMEDOUT; err = -ETIMEDOUT;
goto errorout; goto errorout;
......
...@@ -767,7 +767,7 @@ int vmbus_request_offers(void) ...@@ -767,7 +767,7 @@ int vmbus_request_offers(void)
goto cleanup; goto cleanup;
} }
t = wait_for_completion_timeout(&msginfo->waitevent, HZ); t = wait_for_completion_timeout(&msginfo->waitevent, 5*HZ);
if (t == 0) { if (t == 0) {
ret = -ETIMEDOUT; ret = -ETIMEDOUT;
goto cleanup; goto cleanup;
......
...@@ -135,7 +135,7 @@ int vmbus_connect(void) ...@@ -135,7 +135,7 @@ int vmbus_connect(void)
} }
/* Wait for the connection response */ /* Wait for the connection response */
t = wait_for_completion_timeout(&msginfo->waitevent, HZ); t = wait_for_completion_timeout(&msginfo->waitevent, 5*HZ);
if (t == 0) { if (t == 0) {
spin_lock_irqsave(&vmbus_connection.channelmsg_lock, spin_lock_irqsave(&vmbus_connection.channelmsg_lock,
flags); flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment