summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtrdma/rpc_rdma.c
diff options
context:
space:
mode:
authorChuck Lever2014-05-28 16:32:43 +0200
committerAnna Schumaker2014-06-04 14:56:38 +0200
commit0ac531c1832318efa3dc3d723e356a7e09330e80 (patch)
treef62821d119a63b3b8441bb2cbc41494bd7e44b04 /net/sunrpc/xprtrdma/rpc_rdma.c
parentxprtrdma: Remove MEMWINDOWS registration modes (diff)
downloadkernel-qcow2-linux-0ac531c1832318efa3dc3d723e356a7e09330e80.tar.gz
kernel-qcow2-linux-0ac531c1832318efa3dc3d723e356a7e09330e80.tar.xz
kernel-qcow2-linux-0ac531c1832318efa3dc3d723e356a7e09330e80.zip
xprtrdma: Remove REGISTER memory registration mode
All kernel RDMA providers except amso1100 support either MTHCAFMR or FRMR, both of which are faster than REGISTER. amso1100 can continue to use ALLPHYSICAL. The only other ULP consumer in the kernel that uses the reg_phys_mr verb is Lustre. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc/xprtrdma/rpc_rdma.c')
-rw-r--r--net/sunrpc/xprtrdma/rpc_rdma.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sunrpc/xprtrdma/rpc_rdma.c b/net/sunrpc/xprtrdma/rpc_rdma.c
index 46b51727227b..aae1726ca381 100644
--- a/net/sunrpc/xprtrdma/rpc_rdma.c
+++ b/net/sunrpc/xprtrdma/rpc_rdma.c
@@ -476,8 +476,7 @@ rpcrdma_marshal_req(struct rpc_rqst *rqst)
* on receive. Therefore, we request a reply chunk
* for non-writes wherever feasible and efficient.
*/
- if (wtype == rpcrdma_noch &&
- r_xprt->rx_ia.ri_memreg_strategy > RPCRDMA_REGISTER)
+ if (wtype == rpcrdma_noch)
wtype = rpcrdma_replych;
}
}