xprtrdma: Allocate each struct rpcrdma_mw separately
authorChuck Lever <chuck.lever@oracle.com>
Tue, 29 Jul 2014 21:25:38 +0000 (17:25 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 31 Jul 2014 20:22:57 +0000 (16:22 -0400)
commit2e84522c2e0323a090fe1f7eeed6d5b6a68efe5f
tree542a04ce4fa4cc1312a76371282ddb6d9ebcf5fe
parentf590e878c52c38046fd7cfa5a742ddae68717484
xprtrdma: Allocate each struct rpcrdma_mw separately

Currently rpcrdma_buffer_create() allocates struct rpcrdma_mw's as
a single contiguous area of memory. It amounts to quite a bit of
memory, and there's no requirement for these to be carved from a
single piece of contiguous memory.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Tested-by: Steve Wise <swise@opengridcomputing.com>
Tested-by: Shirley Ma <shirley.ma@oracle.com>
Tested-by: Devesh Sharma <devesh.sharma@emulex.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/verbs.c