]> git.itanic.dy.fi Git - linux-stable/commit
net/mlx5: SF, Drain health before removing device
authorShay Drory <shayd@nvidia.com>
Mon, 24 Apr 2023 09:46:06 +0000 (12:46 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 25 May 2023 03:44:17 +0000 (20:44 -0700)
commitb4646da0573fae9dfa2b8f1f10936cb6eedd7230
tree90aa1099908cb84b0ef437ae01fabeb39602faf9
parent824c8dc4a470040bf0e56ba716543839c2498d49
net/mlx5: SF, Drain health before removing device

There is no point in recovery during device removal. Also, if health
work started need to wait for it to avoid races and NULL pointer
access.

Hence, drain health WQ before removing device.

Fixes: 1958fc2f0712 ("net/mlx5: SF, Add auxiliary device driver")
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/sf/dev/driver.c