Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56413
b: refs/heads/master
c: bd18c11
h: refs/heads/master
i:
  56411: f93be30
v: v3
  • Loading branch information
Michael S. Tsirkin authored and Roland Dreier committed May 14, 2007
1 parent 2efcb4f commit 56873b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3e28c56b9b67347b42ba06f9a9373b408902beee
refs/heads/master: bd18c112774db5bb887adb981ffbe9bfe00b2f3a
4 changes: 3 additions & 1 deletion trunk/drivers/infiniband/hw/mthca/mthca_cq.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ void mthca_cq_clean(struct mthca_dev *dev, struct mthca_cq *cq, u32 qpn,
{
struct mthca_cqe *cqe;
u32 prod_index;
int nfreed = 0;
int i, nfreed = 0;

spin_lock_irq(&cq->lock);

Expand Down Expand Up @@ -321,6 +321,8 @@ void mthca_cq_clean(struct mthca_dev *dev, struct mthca_cq *cq, u32 qpn,
}

if (nfreed) {
for (i = 0; i < nfreed; ++i)
set_cqe_hw(get_cqe(cq, (cq->cons_index + i) & cq->ibcq.cqe));
wmb();
cq->cons_index += nfreed;
update_cons_index(dev, cq, nfreed);
Expand Down

0 comments on commit 56873b2

Please sign in to comment.