diff options
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r-- | drivers/infiniband/hw/cxgb4/t4.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/cxgb4/t4.h b/drivers/infiniband/hw/cxgb4/t4.h index 931bfd105c49..1f329fac9801 100644 --- a/drivers/infiniband/hw/cxgb4/t4.h +++ b/drivers/infiniband/hw/cxgb4/t4.h | |||
@@ -620,6 +620,9 @@ static inline int t4_next_hw_cqe(struct t4_cq *cq, struct t4_cqe **cqe) | |||
620 | printk(KERN_ERR MOD "cq overflow cqid %u\n", cq->cqid); | 620 | printk(KERN_ERR MOD "cq overflow cqid %u\n", cq->cqid); |
621 | BUG_ON(1); | 621 | BUG_ON(1); |
622 | } else if (t4_valid_cqe(cq, &cq->queue[cq->cidx])) { | 622 | } else if (t4_valid_cqe(cq, &cq->queue[cq->cidx])) { |
623 | |||
624 | /* Ensure CQE is flushed to memory */ | ||
625 | rmb(); | ||
623 | *cqe = &cq->queue[cq->cidx]; | 626 | *cqe = &cq->queue[cq->cidx]; |
624 | ret = 0; | 627 | ret = 0; |
625 | } else | 628 | } else |