summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtrdma/verbs.c
diff options
context:
space:
mode:
authorChuck Lever2014-05-28 16:34:57 +0200
committerAnna Schumaker2014-06-04 14:56:52 +0200
commite7ce710a8802351bd4118c5d6136c1d850f67cf9 (patch)
treef9c4a23768955b85ee7d6cf519906004c86aff61 /net/sunrpc/xprtrdma/verbs.c
parentSUNRPC: Move congestion window constants to header file (diff)
downloadkernel-qcow2-linux-e7ce710a8802351bd4118c5d6136c1d850f67cf9.tar.gz
kernel-qcow2-linux-e7ce710a8802351bd4118c5d6136c1d850f67cf9.tar.xz
kernel-qcow2-linux-e7ce710a8802351bd4118c5d6136c1d850f67cf9.zip
xprtrdma: Avoid deadlock when credit window is reset
Update the cwnd while processing the server's reply. Otherwise the next task on the xprt_sending queue is still subject to the old credit window. Currently, no task is awoken if the old congestion window is still exceeded, even if the new window is larger, and a deadlock results. This is an issue during a transport reconnect. Servers don't normally shrink the credit window, but the client does reset it to 1 when reconnecting so the server can safely grow it again. As a minor optimization, remove the hack of grabbing the initial cwnd size (which happens to be RPC_CWNDSCALE) and using that value as the congestion scaling factor. The scaling value is invariant, and we are better off without the multiplication operation. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc/xprtrdma/verbs.c')
0 files changed, 0 insertions, 0 deletions