lkml.org 
[lkml]   [2017]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 3.16 022/212] Drivers: hv: vmbus: Reduce the delay between retries in vmbus_post_msg()
    3.16.44-rc1 review patch.  If anyone has any objections, please let me know.

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

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

    commit 8de0d7e951826d7592e0ba1da655b175c4aa0923 upstream.

    The current delay between retries is unnecessarily high and is negatively
    affecting the time it takes to boot the system.

    Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
    ---
    drivers/hv/connection.c | 8 ++++----
    1 file changed, 4 insertions(+), 4 deletions(-)

    --- a/drivers/hv/connection.c
    +++ b/drivers/hv/connection.c
    @@ -418,7 +418,7 @@ int vmbus_post_msg(void *buffer, size_t
    union hv_connection_id conn_id;
    int ret = 0;
    int retries = 0;
    - u32 msec = 1;
    + u32 usec = 1;

    conn_id.asu32 = 0;
    conn_id.u.id = VMBUS_MESSAGE_CONNECTION_ID;
    @@ -451,9 +451,9 @@ int vmbus_post_msg(void *buffer, size_t
    }

    retries++;
    - msleep(msec);
    - if (msec < 2048)
    - msec *= 2;
    + udelay(usec);
    + if (usec < 2048)
    + usec *= 2;
    }
    return ret;
    }
    \
     
     \ /
      Last update: 2017-06-01 18:38    [W:4.081 / U:0.536 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site