Staging: hv: vmbus: Increase the timeout for some critical calls
authorK. Y. Srinivasan <kys@microsoft.com>
Mon, 6 Jun 2011 22:50:05 +0000 (15:50 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 7 Jun 2011 20:46:03 +0000 (13:46 -0700)
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>
drivers/staging/hv/channel.c

index 5a2a947..69b5641 100644 (file)
@@ -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 */