diff options
author | 2019-04-24 09:39:16 -0400 | |
---|---|---|
committer | 2019-04-25 15:01:27 -0400 | |
commit | 8cec3dba76a4d9d7da4a7219663b8c4333f14522 (patch) | |
tree | d31038bce86a37519387cb2eaff459b2ea0852ec /net/sunrpc/xprtrdma/rpc_rdma.c | |
parent | xprtrdma: Clean up rpcrdma_create_rep() and rpcrdma_destroy_rep() (diff) | |
download | wireguard-linux-8cec3dba76a4d9d7da4a7219663b8c4333f14522.tar.xz wireguard-linux-8cec3dba76a4d9d7da4a7219663b8c4333f14522.zip |
xprtrdma: rpcrdma_regbuf alignment
Allocate the struct rpcrdma_regbuf separately from the I/O buffer
to better guarantee the alignment of the I/O buffer and eliminate
the wasted space between the rpcrdma_regbuf metadata and the buffer
itself.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc/xprtrdma/rpc_rdma.c')
-rw-r--r-- | net/sunrpc/xprtrdma/rpc_rdma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/xprtrdma/rpc_rdma.c b/net/sunrpc/xprtrdma/rpc_rdma.c index b759b169dadf..cf99c55add1b 100644 --- a/net/sunrpc/xprtrdma/rpc_rdma.c +++ b/net/sunrpc/xprtrdma/rpc_rdma.c @@ -747,8 +747,8 @@ rpcrdma_marshal_req(struct rpcrdma_xprt *r_xprt, struct rpc_rqst *rqst) int ret; rpcrdma_set_xdrlen(&req->rl_hdrbuf, 0); - xdr_init_encode(xdr, &req->rl_hdrbuf, - req->rl_rdmabuf->rg_base, rqst); + xdr_init_encode(xdr, &req->rl_hdrbuf, rdmab_data(req->rl_rdmabuf), + rqst); /* Fixed header fields */ ret = -EMSGSIZE; |