]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Aug 2020 07:58:46 +0000 (09:58 +0200)
commit70a7bf39aa0d4c920245bf394e13b2b8d3ff5d80
treebb416b1f062fd006f07cd9e4ec5d5ad615ce4236
parent22b7b2bb0fd6d05437d95c1a81f8e5eecfc14272
RDMA/core: Stop DIM before destroying CQ

[ Upstream commit 5d46b289d04b98eb992b2f8b67745cc0953e16b1 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/core/cq.c