xprtrdma: Reduce number of MRs created by rpcrdma_mrs_create
authorChuck Lever <chuck.lever@oracle.com>
Wed, 28 Feb 2018 20:30:49 +0000 (15:30 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 10 Apr 2018 20:06:22 +0000 (16:06 -0400)
Create fewer MRs on average. Many workloads don't need as many as
32 MRs, and the transport can now quickly restock the MR free list.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/verbs.c

index d36c18f26cd3188081cad44878748c7be82129ca..ab8672443c3a5f2e0624e6b246b5de5862addaea 100644 (file)
@@ -1023,7 +1023,7 @@ rpcrdma_mrs_create(struct rpcrdma_xprt *r_xprt)
        LIST_HEAD(free);
        LIST_HEAD(all);
 
-       for (count = 0; count < 32; count++) {
+       for (count = 0; count < 3; count++) {
                struct rpcrdma_mr *mr;
                int rc;