Skip to content

Commit 2241546

Browse files
authored
Merge pull request #1665 from amzn/td_fix
efa: Fix missing mmio flush writes on WQ lock skip
2 parents 89fecd9 + ee776cc commit 2241546

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

providers/efa/verbs.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2290,6 +2290,8 @@ int efa_post_send(struct ibv_qp *ibvqp, struct ibv_send_wr *wr,
22902290

22912291
if (wq->need_lock)
22922292
mmio_wc_spinlock(&wq->wqlock);
2293+
else
2294+
mmio_wc_start();
22932295

22942296
while (wr) {
22952297
err = efa_post_send_validate_wr(qp, wr);
@@ -2636,6 +2638,8 @@ static void efa_send_wr_start(struct ibv_qp_ex *ibvqpx)
26362638

26372639
if (qp->sq.wq.need_lock)
26382640
mmio_wc_spinlock(&qp->sq.wq.wqlock);
2641+
else
2642+
mmio_wc_start();
26392643

26402644
qp->wr_session_err = 0;
26412645
sq->num_wqe_pending = 0;

0 commit comments

Comments
 (0)