RDMA/core: Stop DIM before destroying CQ
authorLeon Romanovsky <leonro@mellanox.com>
Thu, 30 Jul 2020 08:27:18 +0000 (11:27 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 30 Jul 2020 14:03:33 +0000 (11:03 -0300)
commit5d46b289d04b98eb992b2f8b67745cc0953e16b1
tree2f79c730b0a88de45761c391723027dbc78d95ca
parent7fa84b5708cf359efe43ce99fd1f3c8765cacd23
RDMA/core: Stop DIM before destroying CQ

HW destroy operation should be last operation after all possible CQ users
completed their work, so move DIM work cancellation before such destroy
call.

Fixes: da6629793aa6 ("RDMA/core: Provide RDMA DIM support for ULPs")
Link: https://lore.kernel.org/r/20200730082719.1582397-3-leon@kernel.org
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/cq.c