diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2018-02-28 21:30:49 +0100 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2018-04-10 22:06:22 +0200 |
commit | ae741a855170fa97adabce7e48bdf9de71186a5f (patch) | |
tree | d6b215a4e149ab1033f407ffdf67f52094c47b9b /net | |
parent | xprtrdma: ->send_request returns -EAGAIN when there are no free MRs (diff) | |
download | linux-ae741a855170fa97adabce7e48bdf9de71186a5f.tar.xz linux-ae741a855170fa97adabce7e48bdf9de71186a5f.zip |
xprtrdma: Reduce number of MRs created by rpcrdma_mrs_create
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/xprtrdma/verbs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/xprtrdma/verbs.c b/net/sunrpc/xprtrdma/verbs.c index d36c18f26cd3..ab8672443c3a 100644 --- a/net/sunrpc/xprtrdma/verbs.c +++ b/net/sunrpc/xprtrdma/verbs.c @@ -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; |