Skip to contentSkip to conversation

svcrdma: Fence LOCAL_INV work requests

PATCH In review Steve Wise 2 participants 3 messages Jun 5, 2014

Subsystems (4)
lore
Share & tools
lore

Steve Wise

author
#0 lore raw

PATCH v2 1/1 svcrdma: Fence LOCAL_INV work requests

This applies on top of:

	commit e5a070216356dbcb03607cb264cc3104e17339b3
	Author: Steve Wise <[email protected]>
	Date:   Wed May 28 15:12:01 2014 -0500

	    svcrdma: refactor marshalling logic

Fencing forces the invalidate to only happen after all prior send work requests have been completed.

---

 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/sunrpc/xprtrdma/svc_rdma_recvfrom.c +1 -1
index 52d9f2c..8f92a61 100644
@@ -338,7 +338,7 @@ static int rdma_read_chunk_frmr(struct svcxprt_rdma *xprt,
 		memset(&inv_wr, 0, sizeof(inv_wr));
 		inv_wr.wr_id = (unsigned long)ctxt;
 		inv_wr.opcode = IB_WR_LOCAL_INV;
-		inv_wr.send_flags = IB_SEND_SIGNALED;
+		inv_wr.send_flags = IB_SEND_SIGNALED | IB_SEND_FENCE;
 		inv_wr.ex.invalidate_rkey = frmr->mr->lkey;
 	}
 	ctxt->wr_op = read_wr.opcode;

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#1 lore raw
Quoted 7 lines · Steve Wise

This applies on top of:

	commit e5a070216356dbcb03607cb264cc3104e17339b3
	Author: Steve Wise <[email protected]>
	Date:   Wed May 28 15:12:01 2014 -0500

	    svcrdma: refactor marshalling logic

Sorry, I lost track--was there another revision of that patch coming too?

--b.

Quoted 24 lines

Fencing forces the invalidate to only happen after all prior send work requests have been completed.

---

 net/sunrpc/xprtrdma/svc_rdma_recvfrom.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/sunrpc/xprtrdma/svc_rdma_recvfrom.c +1 -1
index 52d9f2c..8f92a61 100644
@@ -338,7 +338,7 @@ static int rdma_read_chunk_frmr(struct svcxprt_rdma *xprt,
 		memset(&inv_wr, 0, sizeof(inv_wr));
 		inv_wr.wr_id = (unsigned long)ctxt;
 		inv_wr.opcode = IB_WR_LOCAL_INV;
-		inv_wr.send_flags = IB_SEND_SIGNALED;
+		inv_wr.send_flags = IB_SEND_SIGNALED | IB_SEND_FENCE;
 		inv_wr.ex.invalidate_rkey = frmr->mr->lkey;
 	}
 	ctxt->wr_op = read_wr.opcode;
author
#2 lore raw
Quoted 12 lines

-----Original Message-----
From: J. Bruce Fields [mailto:[email protected]]
Sent: Thursday, June 05, 2014 11:14 AM
To: Steve Wise
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH V2] svcrdma: Fence LOCAL_INV work requests

Quoted 2 lines · Steve Wise

This applies on top of:

Quoted 9 lines
Quoted 5 lines
	commit e5a070216356dbcb03607cb264cc3104e17339b3
	Author: Steve Wise <[email protected]>
	Date:   Wed May 28 15:12:01 2014 -0500

	    svcrdma: refactor marshalling logic

Sorry, I lost track--was there another revision of that patch coming too?

No.