|
@@ -1286,7 +1286,7 @@ err_cleanup_once:
|
|
|
mlx5_cleanup_once(dev);
|
|
|
|
|
|
err_stop_poll:
|
|
|
- mlx5_stop_health_poll(dev);
|
|
|
+ mlx5_stop_health_poll(dev, boot);
|
|
|
if (mlx5_cmd_teardown_hca(dev)) {
|
|
|
dev_err(&dev->pdev->dev, "tear_down_hca failed, skip cleanup\n");
|
|
|
goto out_err;
|
|
@@ -1346,7 +1346,7 @@ static int mlx5_unload_one(struct mlx5_core_dev *dev, struct mlx5_priv *priv,
|
|
|
mlx5_free_irq_vectors(dev);
|
|
|
if (cleanup)
|
|
|
mlx5_cleanup_once(dev);
|
|
|
- mlx5_stop_health_poll(dev);
|
|
|
+ mlx5_stop_health_poll(dev, cleanup);
|
|
|
err = mlx5_cmd_teardown_hca(dev);
|
|
|
if (err) {
|
|
|
dev_err(&dev->pdev->dev, "tear_down_hca failed, skip cleanup\n");
|
|
@@ -1608,7 +1608,7 @@ static int mlx5_try_fast_unload(struct mlx5_core_dev *dev)
|
|
|
* with the HCA, so the health polll is no longer needed.
|
|
|
*/
|
|
|
mlx5_drain_health_wq(dev);
|
|
|
- mlx5_stop_health_poll(dev);
|
|
|
+ mlx5_stop_health_poll(dev, false);
|
|
|
|
|
|
ret = mlx5_cmd_force_teardown_hca(dev);
|
|
|
if (ret) {
|