]> git.baikalelectronics.ru Git - kernel.git/commit
xprtrdma: Move creation of rl_rdmabuf to rpcrdma_create_req
authorChuck Lever <chuck.lever@oracle.com>
Wed, 28 Feb 2018 20:31:05 +0000 (15:31 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 10 Apr 2018 20:06:22 +0000 (16:06 -0400)
commit6060b2cf6b68144401b5839ed44cebfc0fc9f7e3
treeb222986a57b5f2c4e3240600103611655abda10d
parent5b579bda0b9522f1992e5b63adbbb05cc595a68d
xprtrdma: Move creation of rl_rdmabuf to rpcrdma_create_req

Refactor: Both rpcrdma_create_req call sites have to allocate the
buffer where the transport header is built, so just move that
allocation into rpcrdma_create_req.

This buffer is a fixed size. There's no needed information available
in call_allocate that is not also available when the transport is
created.

The original purpose for allocating these buffers on demand was to
reduce the possibility that an allocation failure during transport
creation will hork the mount operation during low memory scenarios.
Some relief for this rare possibility is coming up in the next few
patches.

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