xprtrdma: mind the device's max fast register page list depth
authorSteve Wise <swise@opengridcomputing.com>
Wed, 28 May 2014 14:32:00 +0000 (10:32 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 4 Jun 2014 12:56:33 +0000 (08:56 -0400)
commit0fc6c4e7bb287148eb5e949efd89327929d4841d
tree5f750b1249c2107df15b28a1ed98c696dafa6480
parentb5968725f46d9535e908689bd04bf676f71138bb
xprtrdma: mind the device's max fast register page list depth

Some rdma devices don't support a fast register page list depth of
at least RPCRDMA_MAX_DATA_SEGS.  So xprtrdma needs to chunk its fast
register regions according to the minimum of the device max supported
depth or RPCRDMA_MAX_DATA_SEGS.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/rpc_rdma.c
net/sunrpc/xprtrdma/verbs.c
net/sunrpc/xprtrdma/xprt_rdma.h