Skip to content

Commit

Permalink
IB/ipath: Fix SRQ limit event causing dropped CQ entry
Browse files Browse the repository at this point in the history
A silly programming error causes a CQ entry to not be generated if a
SRQ limit event is generated.

Signed-off-by: Bryan O'Sullivan <bryan.osullivan@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
  • Loading branch information
Ralph Campbell authored and Roland Dreier committed Apr 19, 2007
1 parent 947d761 commit 9f9630d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/infiniband/hw/ipath/ipath_ruc.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ int ipath_get_rwqe(struct ipath_qp *qp, int wr_id_only)
wq->tail = tail;

ret = 1;
qp->r_wrid_valid = 1;
if (handler) {
u32 n;

Expand Down Expand Up @@ -229,7 +230,6 @@ int ipath_get_rwqe(struct ipath_qp *qp, int wr_id_only)
}
}
spin_unlock_irqrestore(&rq->lock, flags);
qp->r_wrid_valid = 1;

bail:
return ret;
Expand Down

0 comments on commit 9f9630d

Please sign in to comment.