summaryrefslogtreecommitdiff
path: root/net/sunrpc/xprtrdma/transport.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2020-06-15 16:20:52 +0300
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2020-06-22 16:34:35 +0300
commit2acc5cae292355f5f18ad377a2a966e7f03c8fec (patch)
tree695d23aa62617542560bed45e78e7a8ec41a9014 /net/sunrpc/xprtrdma/transport.c
parent48778464bb7d346b47157d21ffde2af6b2d39110 (diff)
downloadlinux-2acc5cae292355f5f18ad377a2a966e7f03c8fec.tar.xz
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