aboutsummaryrefslogtreecommitdiffstats
path: root/net/rxrpc/output.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2016-09-17 10:49:12 +0100
committerDavid Howells <dhowells@redhat.com>2016-09-17 10:53:21 +0100
commitdfa7d9204054b091949d87270e55e0fd5800c3ae (patch)
treece1e98fcd9b77d069c902607c8ce959565d7b39d /net/rxrpc/output.c
parentrxrpc: Fix the parsing of soft-ACKs (diff)
downloadlinux-dev-dfa7d9204054b091949d87270e55e0fd5800c3ae.tar.xz
linux-dev-dfa7d9204054b091949d87270e55e0fd5800c3ae.zip
rxrpc: Fix retransmission algorithm
Make the retransmission algorithm use for-loops instead of do-loops and move the counter increments into the for-statement increment slots. Though the do-loops are slighly more efficient since there will be at least one pass through the each loop, the counter increments are harder to get right as the continue-statements skip them. Without this, if there are any positive acks within the loop, the do-loop will cycle forever because the counter increment is never done. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'net/rxrpc/output.c')
0 files changed, 0 insertions, 0 deletions