• Chuck Lever's avatar
    xprtrdma: Move creation of rl_rdmabuf to rpcrdma_create_req · 2dd4a012
    Chuck Lever authored
    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: default avatarChuck Lever <chuck.lever@oracle.com>
    Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
    2dd4a012
backchannel.c 9.36 KB