This set of patches implements support for Fast Memory Registration in
the NFS client. Fast Memory Registration is enabled by writing 6 to
the rdma_memreg_strategy proc file as follows:
# echo 6 > /proc/sys/sunrpc/rdma_memreg_strategy
If Fast Memory Registration is not supported by the device, the
memory registration strategy reverts to a global default that
is supported by all RDMA adapters.
This patches are also available here:
git://git.linux-nfs.org/projects/tomtucker/xprt-switch-2.6.git
Signed-off-by: Tom Tucker <[email protected]>
[PATCH 01/02] xprtrdma: Add data types to support FRMR
include/linux/sunrpc/xprtrdma.h | 1 +
net/sunrpc/xprtrdma/xprt_rdma.h | 10 +++++++++-
2 files changed, 10 insertions(+), 1 deletions(-)
[PATCH 02/02] xprtrdma: Update the RPC memory registration to use FRMR
net/sunrpc/xprtrdma/verbs.c | 296 ++++++++++++++++++++++++++++++++++++++-----
1 files changed, 263 insertions(+), 33 deletions(-)