summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtrdma/xprt_rdma.h
diff options
context:
space:
mode:
authorSagi Grimberg2015-10-13 18:11:35 +0200
committerDoug Ledford2015-10-29 03:27:18 +0100
commit4143f34e01e9cdf1882f98c54d9073e4de8c28fb (patch)
tree6cdd57defe70269dbc4a6b056d5c7f1e21a1013f /net/sunrpc/xprtrdma/xprt_rdma.h
parentiser-target: Port to new memory registration API (diff)
downloadkernel-qcow2-linux-4143f34e01e9cdf1882f98c54d9073e4de8c28fb.tar.gz
kernel-qcow2-linux-4143f34e01e9cdf1882f98c54d9073e4de8c28fb.tar.xz
kernel-qcow2-linux-4143f34e01e9cdf1882f98c54d9073e4de8c28fb.zip
xprtrdma: Port to new memory registration API
Instead of maintaining a fastreg page list, keep an sg table and convert an array of pages to a sg list. Then call ib_map_mr_sg and construct ib_reg_wr. Signed-off-by: Sagi Grimberg <sagig@mellanox.com> Acked-by: Christoph Hellwig <hch@lst.de> Tested-by: Steve Wise <swise@opengridcomputing.com> Tested-by: Selvin Xavier <selvin.xavier@avagotech.com> Reviewed-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'net/sunrpc/xprtrdma/xprt_rdma.h')
-rw-r--r--net/sunrpc/xprtrdma/xprt_rdma.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sunrpc/xprtrdma/xprt_rdma.h b/net/sunrpc/xprtrdma/xprt_rdma.h
index c09414e6f91b..c82abf44e39d 100644
--- a/net/sunrpc/xprtrdma/xprt_rdma.h
+++ b/net/sunrpc/xprtrdma/xprt_rdma.h
@@ -193,7 +193,8 @@ enum rpcrdma_frmr_state {
};
struct rpcrdma_frmr {
- struct ib_fast_reg_page_list *fr_pgl;
+ struct scatterlist *sg;
+ int sg_nents;
struct ib_mr *fr_mr;
enum rpcrdma_frmr_state fr_state;
struct work_struct fr_work;