RDMA/mlx5: Unify error flows in rereg MR failure paths
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 13 Mar 2018 13:29:26 +0000 (15:29 +0200)
committerDoug Ledford <dledford@redhat.com>
Thu, 15 Mar 2018 14:59:58 +0000 (10:59 -0400)
commit4638a3b2428a66db6e2d934ff200e254763f78a7
tree3e2ce2bd4ea9fb4ccd8b843d8842f498f6907130
parentea30f013765865f50fbfb6460aea2b18df19c978
RDMA/mlx5: Unify error flows in rereg MR failure paths

According to the IBTA spec 1.3, the driver failure in
MR reregister shall release old and new MRs.

 C11-20: If the CI returns any other error, the CI shall
 invalidate both "old" and "new" registrations, and release
 any associated resources.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/mr.c