]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0af4341a787aad6be7e4478e31843927db168f19
tree3d71b14e21ddb2082cc700822af1e868e430f2fe
parent04c322a2aac1a9adfb84b588ec0527d0cfeaa961
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