lkml.org 
[lkml]   [2016]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.2.y-ckt 171/218] net/mlx5: Make command timeout way shorter
    Date
    4.2.8-ckt7 -stable review patch.  If anyone has any objections, please let me know.

    ---8<------------------------------------------------------------

    From: Or Gerlitz <ogerlitz@mellanox.com>

    commit 6b6c07bdcdc97ccac2596063bfc32a5faddfe884 upstream.

    The command timeout is terribly long, whole two hours. Make it 60s so if
    things do go wrong, the user gets feedback in relatively short time, so
    they can take corrective actions and/or investigate using tools and such.

    Fixes: e126ba97dba9 ('mlx5: Add driver for Mellanox Connect-IB adapters')
    Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
    Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
    Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Kamal Mostafa <kamal@canonical.com>
    ---
    include/linux/mlx5/driver.h | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
    index 5722d88..26d92aa 100644
    --- a/include/linux/mlx5/driver.h
    +++ b/include/linux/mlx5/driver.h
    @@ -54,7 +54,7 @@ enum {
    /* one minute for the sake of bringup. Generally, commands must always
    * complete and we may need to increase this timeout value
    */
    - MLX5_CMD_TIMEOUT_MSEC = 7200 * 1000,
    + MLX5_CMD_TIMEOUT_MSEC = 60 * 1000,
    MLX5_CMD_WQ_MAX_NAME = 32,
    };

    --
    2.7.4
    \
     
     \ /
      Last update: 2016-03-31 22:41    [W:4.085 / U:0.180 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site