Unverified Commit c329afbe authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!14573 RDMA/rxe: Fix the qp flush warnings in req

parents 243c0c15 16981e89
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -693,11 +693,13 @@ int rxe_requester(struct rxe_qp *qp)
	if (unlikely(qp_state(qp) == IB_QPS_ERR)) {
		wqe = __req_next_wqe(qp);
		spin_unlock_irqrestore(&qp->state_lock, flags);
		if (wqe)
		if (wqe) {
			wqe->status = IB_WC_WR_FLUSH_ERR;
			goto err;
		else
		} else {
			goto exit;
		}
	}

	if (unlikely(qp_state(qp) == IB_QPS_RESET)) {
		qp->req.wqe_index = queue_get_consumer(q,