Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5d85a822 authored by Jason Gunthorpe's avatar Jason Gunthorpe
Browse files

net/xprtrdma: Restore needed argument to ib_post_send



The call in svc_rdma_post_chunk_ctxt() does actually use bad_wr.

Fixes: ed288d74 ("net/xprtrdma: Simplify ib_post_(send|recv|srq_recv)() calls")
Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarBart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 643d213a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -329,7 +329,7 @@ static int svc_rdma_post_chunk_ctxt(struct svc_rdma_chunk_ctxt *cc)
	do {
		if (atomic_sub_return(cc->cc_sqecount,
				      &rdma->sc_sq_avail) > 0) {
			ret = ib_post_send(rdma->sc_qp, first_wr, NULL);
			ret = ib_post_send(rdma->sc_qp, first_wr, &bad_wr);
			trace_svcrdma_post_rw(&cc->cc_cqe,
					      cc->cc_sqecount, ret);
			if (ret)