]> git.baikalelectronics.ru Git - kernel.git/commit
svcrdma: limit FRMR page list lengths to device max
authorSteve Wise <swise@opengridcomputing.com>
Fri, 7 Aug 2015 16:11:20 +0000 (11:11 -0500)
committerDoug Ledford <dledford@redhat.com>
Sun, 30 Aug 2015 22:08:46 +0000 (18:08 -0400)
commit095dd088e08e377e88ee5347bc5c99f7409456ee
tree98de70b2b6d2a8325fa55cc46a69a1609ebad77f
parent6f07d4d7bd2014739532443e8c62ba4370f3c848
svcrdma: limit FRMR page list lengths to device max

Svcrdma was incorrectly allocating fastreg MRs and page lists using
RPCSVC_MAXPAGES, which can exceed the device capabilities.  So limit
the depth to the minimum of RPCSVC_MAXPAGES and xprt->sc_frmr_pg_list_len.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
net/sunrpc/xprtrdma/svc_rdma_transport.c