svcrdma: Improve allocation of struct svc_rdma_req_map
authorChuck Lever <chuck.lever@oracle.com>
Thu, 7 Jan 2016 19:49:20 +0000 (14:49 -0500)
committerDoug Ledford <dledford@redhat.com>
Tue, 19 Jan 2016 20:30:48 +0000 (15:30 -0500)
commit2fe81b239dbb00d0a2fd8858ac9dd4ef4a8841ee
tree82da79b378d1347b6810a7ff2ac1a0040b0c2ef4
parentcc886c9ff1607eda04062bdcec963e2f8e6a3eb1
svcrdma: Improve allocation of struct svc_rdma_req_map

To ensure this allocation cannot fail and will not sleep,
pre-allocate the req_map structures per-connection.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Acked-by: Bruce Fields <bfields@fieldses.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
include/linux/sunrpc/svc_rdma.h
net/sunrpc/xprtrdma/svc_rdma_sendto.c
net/sunrpc/xprtrdma/svc_rdma_transport.c