Loading
RDMA/hns: Fix flush cqe error when racing with destroy qp
driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IAXK5A ---------------------------------------------------------------------- QP needs to be modified to IB_QPS_ERROR to trigger HW flush cqe. But when this process races with destroy qp, the destroy-qp process may modify the QP to IB_QPS_RESET first. In this case flush cqe will fail since it is invalid to modify qp from IB_QPS_RESET to IB_QPS_ERROR. Add lock and bit flag to make sure pending flush cqe work is completed first. Fixes: ffd541d4 ("RDMA/hns: Add the workqueue framework for flush cqe handler") Signed-off-by:wenglianfa <wenglianfa@huawei.com> Signed-off-by:
Xinghai Cen <cenxinghai@h-partners.com>