aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtrdma/transport.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2020-06-15 09:20:52 -0400
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2020-06-22 09:34:35 -0400
commit2acc5cae292355f5f18ad377a2a966e7f03c8fec (patch)
tree695d23aa62617542560bed45e78e7a8ec41a9014 /net/sunrpc/xprtrdma/transport.c
parentLinux 5.8-rc2 (diff)
downloadlinux-dev-2acc5cae292355f5f18ad377a2a966e7f03c8fec.tar.xz
linux-dev-2acc5cae292355f5f18ad377a2a966e7f03c8fec.zip
xprtrdma: Prevent dereferencing r_xprt->rx_ep after it is freed
r_xprt->rx_ep is known to be good while the transport's send lock is held. Otherwise additional references on rx_ep must be held when it is used outside of that lock's critical sections. For now, bump the rx_ep reference count once whenever there is at least one outstanding Receive WR. This avoids the memory bandwidth overhead of taking and releasing the reference count for every ib_post_recv() and Receive completion. 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