RDMA/mlx5: Don't call to restrack recursively
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 22 Sep 2020 09:11:03 +0000 (12:11 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 22 Sep 2020 22:47:35 +0000 (19:47 -0300)
commitd7ecab1e5f7d12209549813e61435d01489a1887
treee114cd486e6a44d06d0939b6315b63b9c53e4633
parent60aaeffa367c2ac72cac96edfd10452c613882f5
RDMA/mlx5: Don't call to restrack recursively

The restrack is going to manage memory of all IB objects and must be
called before object is created. GSI QP in the mlx5_ib separated between
creating dummy interface and HW object beneath. This was achieved by
double call to ib_create_qp().

In order to skip such reentry call to internal driver create_qp code.

Link: https://lore.kernel.org/r/20200922091106.2152715-3-leon@kernel.org
Reviewed-by: Mark Zhang <markz@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/gsi.c