Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
efa: Change resource deallocation order in QP and CQ
[ Upstream commit 884716f ] When trying to destroy QP or CQ, we first release rdma-core resources for the relevant object (mapping for address ranges, refcounts, locks etc.) and only then request the driver to destroy the object. If the driver or the device fails, the object isn't fully destroyed so the user can try to destroy the object again which will lead to trying to release already released rdma-core resources for the object. Change deallocation order to first call kernel and driver code and if succeeded release rdma-core resources. Signed-off-by: Yonatan Nachum <ynachum@amazon.com> Signed-off-by: Nicolas Morey <nmorey@suse.com>
- Loading branch information