summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xdr.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2020-06-15 15:20:52 +0200
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2020-06-22 15:34:35 +0200
commit2acc5cae292355f5f18ad377a2a966e7f03c8fec (patch)
tree695d23aa62617542560bed45e78e7a8ec41a9014 /net/sunrpc/xdr.c
parentLinux 5.8-rc2 (diff)
downloadlinux-2acc5cae292355f5f18ad377a2a966e7f03c8fec.tar.xz
linux-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/xdr.c')
0 files changed, 0 insertions, 0 deletions