]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd16f62fbdcd8ff63232053e54626032b79b742eb
tree2f79c730b0a88de45761c391723027dbc78d95ca
parent65ef2302909a6693ea904ce2776ccdc6b517159b
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: 508b2c7419ec ("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