[ofa-general] [PATCH 4/5] IB/ipath -- fix work completion entry put on the wrong cq
Ralph Campbell
ralph.campbell at qlogic.com
Tue Mar 11 11:51:15 PDT 2008
From: Patrick Marchand Latifi <patrick.latifi at qlogic.com>
A work completion entry could be placed on the wrong completion
queue. This can happen when the RC QP is placed in the error
state.
Signed-off-by: Patrick Marchand Latifi <patrick.latifi at qlogic.com>
Acked-by: Ralph Campbell <ralph.campbell at qlogic.com>
---
drivers/infiniband/hw/ipath/ipath_qp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/infiniband/hw/ipath/ipath_qp.c b/drivers/infiniband/hw/ipath/ipath_qp.c
index 553d900..087ed31 100644
--- a/drivers/infiniband/hw/ipath/ipath_qp.c
+++ b/drivers/infiniband/hw/ipath/ipath_qp.c
@@ -415,7 +415,7 @@ int ipath_error_qp(struct ipath_qp *qp, enum ib_wc_status err)
wc.wr_id = qp->r_wr_id;
wc.opcode = IB_WC_RECV;
wc.status = err;
- ipath_cq_enter(to_icq(qp->ibqp.send_cq), &wc, 1);
+ ipath_cq_enter(to_icq(qp->ibqp.recv_cq), &wc, 1);
}
wc.status = IB_WC_WR_FLUSH_ERR;
More information about the general
mailing list