]> git.itanic.dy.fi Git - linux-stable/commit
net/mlx5: Remove redundant health work lock
authorShay Drory <shayd@nvidia.com>
Thu, 5 Jan 2023 08:03:46 +0000 (10:03 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 8 Feb 2023 00:29:53 +0000 (16:29 -0800)
commit67257cba905d6c5660851968b55b7c5c3dc1ecc5
treee8dcd124e02327999fcd28f636975df56dcfb006
parent7802886274cc850a205e9e334c5a1b1b743ea71c
net/mlx5: Remove redundant health work lock

Commit 90e7cb78b815 ("net/mlx5: fix missing mutex_unlock in
mlx5_fw_fatal_reporter_err_work()") introduced another checking of
MLX5_DROP_HEALTH_NEW_WORK. At this point, the first check of
MLX5_DROP_HEALTH_NEW_WORK is redundant and so is the lock that
protects it.

Remove the lock and rename MLX5_DROP_HEALTH_NEW_WORK to reflect these
changes.

Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/health.c
include/linux/mlx5/driver.h