summaryrefslogtreecommitdiff
path: root/security/tomoyo
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2016-09-06 15:22:58 (GMT)
committerTrond Myklebust <trond.myklebust@primarydata.com>2016-09-06 19:59:35 (GMT)
commit05c974669ecec510a85d8534099bb75404e82c41 (patch)
tree8f35a5f3dfa7f9b98781c1026e17b26c5e716097 /security/tomoyo
parent78d506e1b7071b24850fd5ac22b896c459b0a04c (diff)
downloadlinux-05c974669ecec510a85d8534099bb75404e82c41.tar.xz
xprtrdma: Fix receive buffer accounting
An RPC can terminate before its reply arrives, if a credential problem or a soft timeout occurs. After this happens, xprtrdma reports it is out of Receive buffers. A Receive buffer is posted before each RPC is sent, and returned to the buffer pool when a reply is received. If no reply is received for an RPC, that Receive buffer remains posted. But xprtrdma tries to post another when the next RPC is sent. If this happens a few dozen times, there are no receive buffers left to be posted at send time. I don't see a way for a transport connection to recover at that point, and it will spit warnings and unnecessarily delay RPCs on occasion for its remaining lifetime. Commit 1e465fd4ff47 ("xprtrdma: Replace send and receive arrays") removed a little bit of logic to detect this case and not provide a Receive buffer so no more buffers are posted, and then transport operation continues correctly. We didn't understand what that logic did, and it wasn't commented, so it was removed as part of the overhaul to support backchannel requests. Restore it, but be wary of the need to keep extra Receives posted to deal with backchannel requests. Fixes: 1e465fd4ff47 ("xprtrdma: Replace send and receive arrays") Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Reviewed-by: Anna Schumaker <Anna.Schumaker@Netapp.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'security/tomoyo')
0 files changed, 0 insertions, 0 deletions