]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6091d495e6ae1ff9304bc622770c5dad07de2ef0
tree8a41589ae954b9656c8f7b8b9005ed6799ef4502
parentf5061cee754fc51abab98bd206eb76bec92ea454
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