aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtrdma/transport.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2020-11-09 14:40:19 -0500
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2020-11-11 10:57:39 -0500
commit7a03aeb66c410366acc5439ae2a341f110c4f845 (patch)
tree946c3cd8c965bfe66291c8c1e01524f63c45d3b3 /net/sunrpc/xprtrdma/transport.c
parentxprtrdma: Move rpcrdma_mr_put() (diff)
downloadlinux-dev-7a03aeb66c410366acc5439ae2a341f110c4f845.tar.xz
linux-dev-7a03aeb66c410366acc5439ae2a341f110c4f845.zip
xprtrdma: Micro-optimize MR DMA-unmapping
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: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc/xprtrdma/transport.c')
0 files changed, 0 insertions, 0 deletions