• Tom Tucker's avatar
    svcrdma: Modify the RPC recv path to use FRMR when available · 146b6df6
    Tom Tucker authored
    RPCRDMA requests that specify a read-list are fetched with RDMA_READ. Using
    an FRMR to map the data sink improves NFSRDMA security on transports that
    place the RDMA_READ data sink LKEY on the wire because the valid lifetime
    of the MR is only the duration of the RDMA_READ. The LKEY is invalidated
    when the last RDMA_READ WR completes.
    
    Mapping the data sink also allows for very large amounts to data to be
    fetched with a single WR, so if the client is also using FRMR, the entire
    RPC read-list can be fetched with a single WR.
    Signed-off-by: default avatarTom Tucker <tom@opengridcomputing.com>
    146b6df6
svc_rdma_transport.c 37.4 KB