Reported by : Devesh Sharma
Ack'ed by: Devesh Sharma

-Regards
 Devesh

> -----Original Message-----
> From: [email protected] [mailto:linux-rdma-
> [email protected]] On Behalf Of Steve Wise
> Sent: Monday, June 02, 2014 10:45 PM
> To: [email protected]
> Cc: [email protected]; [email protected];
> [email protected]
> Subject: [PATCH] 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 subsequent send work
> requests have been completed.
> 
> Signed-off-by: Steve Wise <[email protected]>
> ---
> 
>  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 52d9f2c..8f92a61 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,
>               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-rdma" in the
> body of a message to [email protected] More majordomo info at
> http://vger.kernel.org/majordomo-info.html
N�����r��y����b�X��ǧv�^�)޺{.n�+����{��ٚ�{ay�ʇڙ�,j��f���h���z��w���
���j:+v���w�j�m��������zZ+�����ݢj"��!�i

Reply via email to