summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/powernow-k8.c
diff options
context:
space:
mode:
authorShay Drory <shayd@mellanox.com>2020-05-07 08:32:53 +0200
committerSaeed Mahameed <saeedm@mellanox.com>2020-06-12 00:37:51 +0200
commitb6e0b6bebe0732d5cac51f0791f269d2413b8980 (patch)
tree384313d7b2a6d341e52a5f933454c2118d79afe1 /drivers/cpufreq/powernow-k8.c
parentnet/mlx5: drain health workqueue in case of driver load error (diff)
downloadlinux-b6e0b6bebe0732d5cac51f0791f269d2413b8980.tar.xz
linux-b6e0b6bebe0732d5cac51f0791f269d2413b8980.zip
net/mlx5: Fix fatal error handling during device load
Currently, in case of fatal error during mlx5_load_one(), we cannot enter error state until mlx5_load_one() is finished, what can take several minutes until commands will get timeouts, because these commands can't be processed due to the fatal error. Fix it by setting dev->state as MLX5_DEVICE_STATE_INTERNAL_ERROR before requesting the lock. Fixes: c1d4d2e92ad6 ("net/mlx5: Avoid calling sleeping function by the health poll thread") Signed-off-by: Shay Drory <shayd@mellanox.com> Reviewed-by: Moshe Shemesh <moshe@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/cpufreq/powernow-k8.c')
0 files changed, 0 insertions, 0 deletions