• Chuck Lever's avatar
    xprtrdma: Micro-optimize MR DMA-unmapping · 7a03aeb6
    Chuck Lever authored
    Now that rpcrdma_ep is no longer part of rpcrdma_xprt, there are
    four or five serial address dereferences needed to get to the
    IB device needed for DMA unmapping.
    
    Instead, let's use the same pattern that regbufs use: cache a
    pointer to the device in the MR, and use that as the indication
    that unmapping is necessary.
    
    This also guarantees that the exact same device is used for DMA
    mapping and unmapping, even if the r_xprt's ep has been replaced. I
    don't think this can happen today, but future changes might break
    this assumption.
    Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
    Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
    7a03aeb6
xprt_rdma.h 18 KB