xprtrdma: Add struct rpcrdma_regbuf and helpers
authorChuck Lever <chuck.lever@oracle.com>
Wed, 21 Jan 2015 16:04:00 +0000 (11:04 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 30 Jan 2015 15:47:49 +0000 (10:47 -0500)
commit9128c3e794a77917a86dd5490ca2c5233a8c6fde
tree3d71b14e21ddb2082cc700822af1e868e430f2fe
parent1392402c405a75de1cdc658d36c6007ea1c037de
xprtrdma: Add struct rpcrdma_regbuf and helpers

There are several spots that allocate a buffer via kmalloc (usually
contiguously with another data structure) and then register that
buffer internally. I'd like to split the buffers out of these data
structures to allow the data structures to scale.

Start by adding functions that can kmalloc and register a buffer,
and can manage/preserve the buffer's associated ib_sge and ib_mr
fields.

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/verbs.c
net/sunrpc/xprtrdma/xprt_rdma.h
This page took 0.025428 seconds and 5 git commands to generate.