net/mlx5: Drain wq first during PCI device removal
authorParav Pandit <parav@mellanox.com>
Fri, 1 May 2020 14:42:45 +0000 (09:42 -0500)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 15 May 2020 22:44:20 +0000 (15:44 -0700)
commit41798df9bfca5aae080a66252ae1709867e28757
tree8a41589ae954b9656c8f7b8b9005ed6799ef4502
parent4162f58b476b248d0718f3d6aad2e57da2b08a63
net/mlx5: Drain wq first during PCI device removal

mlx5_unload_one() is done with cleanup = true only once.

So instead of doing health wq drain inside the if(), directly do
during PCI device removal.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/main.c