diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2011-06-06 15:50:05 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-06-07 13:46:03 -0700 |
commit | 40961de3350b99cfa93cd80437cb39ec287f839a (patch) | |
tree | 8aaaf8bf248d37500dc8bb8b5c582f0ef20a38e1 /drivers/staging/hv | |
parent | e8e27047746d1977bf547f93e701765f5ce6ec5f (diff) | |
download | linux-40961de3350b99cfa93cd80437cb39ec287f839a.tar.gz |
Staging: hv: vmbus: Increase the timeout for some critical calls
Increase the timeout for some critical calls. In testing we discovered that the
current timeout of 1 second was insufficient under some conditions.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv')
-rw-r--r-- | drivers/staging/hv/channel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/hv/channel.c b/drivers/staging/hv/channel.c index 5a2a947debd8..69b5641151e0 100644 --- a/drivers/staging/hv/channel.c +++ b/drivers/staging/hv/channel.c @@ -480,7 +480,7 @@ int vmbus_establish_gpadl(struct vmbus_channel *channel, void *kbuffer, } } - t = wait_for_completion_timeout(&msginfo->waitevent, HZ); + t = wait_for_completion_timeout(&msginfo->waitevent, 5*HZ); BUG_ON(t == 0); @@ -530,7 +530,7 @@ int vmbus_teardown_gpadl(struct vmbus_channel *channel, u32 gpadl_handle) sizeof(struct vmbus_channel_gpadl_teardown)); BUG_ON(ret != 0); - t = wait_for_completion_timeout(&info->waitevent, HZ); + t = wait_for_completion_timeout(&info->waitevent, 5*HZ); BUG_ON(t == 0); /* Received a torndown response */ |