]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6e428af7aa0789795b26b8b4d6000e3893792d7e
tree3aaf783b5c809dd002567e2c2eba505ee2dc5ecb
parent7e46853a7f02940d51d49af029a3bf8e4801cd3b
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