lkml.org 
[lkml]   [2011]   [Aug]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[010/102] Staging: hv: vmbus: Increase the timeout value in the vmbus driver
    3.0-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: "K. Y. Srinivasan" <kys@microsoft.com>

    commit 2dfde9644fe8c4a77f9c73f95b25d6300ca23b5d upstream.

    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: K. Y. Srinivasan <kys@microsoft.com>
    Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
    Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    drivers/staging/hv/channel.c | 2 +-
    drivers/staging/hv/channel_mgmt.c | 2 +-
    drivers/staging/hv/connection.c | 2 +-
    3 files changed, 3 insertions(+), 3 deletions(-)

    --- a/drivers/staging/hv/channel.c
    +++ b/drivers/staging/hv/channel.c
    @@ -212,7 +212,7 @@ int vmbus_open(struct vmbus_channel *new
    if (ret != 0)
    goto Cleanup;

    - t = wait_for_completion_timeout(&openInfo->waitevent, HZ);
    + t = wait_for_completion_timeout(&openInfo->waitevent, 5*HZ);
    if (t == 0) {
    err = -ETIMEDOUT;
    goto errorout;
    --- a/drivers/staging/hv/channel_mgmt.c
    +++ b/drivers/staging/hv/channel_mgmt.c
    @@ -773,7 +773,7 @@ int vmbus_request_offers(void)
    goto cleanup;
    }

    - t = wait_for_completion_timeout(&msginfo->waitevent, HZ);
    + t = wait_for_completion_timeout(&msginfo->waitevent, 5*HZ);
    if (t == 0) {
    ret = -ETIMEDOUT;
    goto cleanup;
    --- a/drivers/staging/hv/connection.c
    +++ b/drivers/staging/hv/connection.c
    @@ -135,7 +135,7 @@ int vmbus_connect(void)
    }

    /* 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) {
    spin_lock_irqsave(&vmbus_connection.channelmsg_lock,
    flags);



    \
     
     \ /
      Last update: 2011-08-04 01:29    [W:7.143 / U:0.080 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site