diff options
author | Steve Wise <swise@opengridcomputing.com> | 2014-06-05 10:54:31 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-06-06 19:22:51 -0400 |
commit | 83710fc753d2ae158aa3cb7a7966d9c1bd05b792 (patch) | |
tree | 35e9c7832afb03d61c1e5d9425e6294e4ac25c38 | |
parent | 0bf4828983dff062cd502f27ab8644b32774e72e (diff) |
svcrdma: Fence LOCAL_INV work requests
Fencing forces the invalidate to only happen after all prior send
work requests have been completed.
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Reported by : Devesh Sharma <Devesh.Sharma@Emulex.Com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
-rw-r--r-- | net/sunrpc/xprtrdma/svc_rdma_recvfrom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c b/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c index 52d9f2ce20b0..8f92a61ee2df 100644 --- a/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c +++ b/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c | |||
@@ -338,7 +338,7 @@ static int rdma_read_chunk_frmr(struct svcxprt_rdma *xprt, | |||
338 | memset(&inv_wr, 0, sizeof(inv_wr)); | 338 | memset(&inv_wr, 0, sizeof(inv_wr)); |
339 | inv_wr.wr_id = (unsigned long)ctxt; | 339 | inv_wr.wr_id = (unsigned long)ctxt; |
340 | inv_wr.opcode = IB_WR_LOCAL_INV; | 340 | inv_wr.opcode = IB_WR_LOCAL_INV; |
341 | inv_wr.send_flags = IB_SEND_SIGNALED; | 341 | inv_wr.send_flags = IB_SEND_SIGNALED | IB_SEND_FENCE; |
342 | inv_wr.ex.invalidate_rkey = frmr->mr->lkey; | 342 | inv_wr.ex.invalidate_rkey = frmr->mr->lkey; |
343 | } | 343 | } |
344 | ctxt->wr_op = read_wr.opcode; | 344 | ctxt->wr_op = read_wr.opcode; |