Skip to content

Commit 375dc53

Browse files
Vijay Immanueljgunthorpe
authored andcommitted
IB/rxe: Fix missing completion for mem_reg work requests
Run the completer task to post a work completion after processing a memory registration or invalidate work request. This covers the case where the memory registration or invalidate was the last work request posted to the qp. Signed-off-by: Vijay Immanuel <[email protected]> Reviewed-by: Yonatan Cohen <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 7350cdd commit 375dc53

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/infiniband/sw/rxe/rxe_req.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,9 @@ int rxe_requester(void *arg)
645645
} else {
646646
goto exit;
647647
}
648+
if ((wqe->wr.send_flags & IB_SEND_SIGNALED) ||
649+
qp->sq_sig_type == IB_SIGNAL_ALL_WR)
650+
rxe_run_task(&qp->comp.task, 1);
648651
qp->req.wqe_index = next_index(qp->sq.queue,
649652
qp->req.wqe_index);
650653
goto next_wqe;

0 commit comments

Comments
 (0)