Skip to content

Commit

Permalink
Staging: hv: vmbus: Increase the timeout for some critical calls
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Jun 7, 2011
1 parent e8e2704 commit 40961de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/hv/channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);


Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit 40961de

Please sign in to comment.