diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2020-06-30 15:55:45 -0400 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2020-07-28 10:18:13 -0400 |
commit | 64d26422516b2e347b32e6d9b1d40b3c19a62aae (patch) | |
tree | 246fe694a3ee7442335be356ca3c7a908e4a2713 /fs/kernfs | |
parent | a68d5a502bbacfbd31f98371f777d574b3a91baf (diff) | |
download | linux-64d26422516b2e347b32e6d9b1d40b3c19a62aae.tar.bz2 |
svcrdma: Fix another Receive buffer leak
During a connection tear down, the Receive queue is flushed before
the device resources are freed. Typically, all the Receives flush
with IB_WR_FLUSH_ERR.
However, any pending successful Receives flush with IB_WR_SUCCESS,
and the server automatically posts a fresh Receive to replace the
completing one. This happens even after the connection has closed
and the RQ is drained. Receives that are posted after the RQ is
drained appear never to complete, causing a Receive resource leak.
The leaked Receive buffer is left DMA-mapped.
To prevent these late-posted recv_ctxt's from leaking, block new
Receive posting after XPT_CLOSE is set.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/kernfs')
0 files changed, 0 insertions, 0 deletions