IB/mlx5: Do reverse sequence during device removal
When IB device profile initialization completes, device is marked as active. However, IB device is not marked inactive, during device removal flow. It should be the mirror of the add flow. Hence, mark it inactive during remove sequence. Link: https://lore.kernel.org/r/20191212113024.336702-2-leon@kernel.org Signed-off-by: Parav Pandit <parav@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
parent
60262b10a9
commit
4cca96a8d9
1 changed files with 2 additions and 0 deletions
|
|
@ -6725,6 +6725,8 @@ void __mlx5_ib_remove(struct mlx5_ib_dev *dev,
|
|||
const struct mlx5_ib_profile *profile,
|
||||
int stage)
|
||||
{
|
||||
dev->ib_active = false;
|
||||
|
||||
/* Number of stages to cleanup */
|
||||
while (stage) {
|
||||
stage--;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue