IB/mlx5: Fix bad flow upon DEVX mkey creation
authorYishai Hadas <yishaih@mellanox.com>
Mon, 11 Feb 2019 15:40:53 +0000 (17:40 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 11 Feb 2019 22:30:40 +0000 (15:30 -0700)
commit0da4d48d99dfdb2a69172079f6a56e22689d16ce
tree1cf5e4c425ede54b82f36eab30ef25eb0f7afe73
parent8317d6cdc1c7b8add6f2e5b915b5b5f80fdbfa5b
IB/mlx5: Fix bad flow upon DEVX mkey creation

Fix bad flow upon DEVX mkey creation to prevent deleting the indirect mkey
from the radix tree in case there was a previous failure to insert it.

Fixes: 534fd7aac56a ("IB/mlx5: Manage indirection mkey upon DEVX flow for ODP")
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Reviewed-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/devx.c