xprtrdma: Allocate zero pad separately from rpcrdma_buffer
authorChuck Lever <chuck.lever@oracle.com>
Wed, 21 Jan 2015 16:04:33 +0000 (11:04 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 30 Jan 2015 15:47:49 +0000 (10:47 -0500)
commitc05fbb5a593571961fdb4ba06a2bff49aed9dcee
tree349a1603314fb158cd60e4855f7b7cbab512a965
parent6b1184cd4fb086a826f658b02d9d9912dd0dde08
xprtrdma: Allocate zero pad separately from rpcrdma_buffer

Use the new rpcrdma_alloc_regbuf() API to shrink the amount of
contiguous memory needed for a buffer pool by moving the zero
pad buffer into a regbuf.

This is for consistency with the other uses of internally
registered memory.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/rpc_rdma.c
net/sunrpc/xprtrdma/verbs.c
net/sunrpc/xprtrdma/xprt_rdma.h