RDMA/iser: Limit sgs to the device fastreg depth
authorSteve Wise <swise@opengridcomputing.com>
Tue, 28 Jul 2015 14:13:52 +0000 (09:13 -0500)
committerDoug Ledford <dledford@redhat.com>
Sat, 29 Aug 2015 02:54:47 +0000 (22:54 -0400)
commit7854550ae6d89bb90980b9885c7a71e471820bf2
tree3aaf783b5c809dd002567e2c2eba505ee2dc5ecb
parentd6c7276be180fbd0a30cda8fac5c82d483be47b6
RDMA/iser: Limit sgs to the device fastreg depth

Currently the sg tablesize, which dictates fast register page list
depth to use, does not take into account the limits of the rdma device.
So adjust it once we discover the device fastreg max depth limit.  Also
adjust the max_sectors based on the resulting sg tablesize.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/iser/iscsi_iser.c