Skip to content
  • David Howells's avatar
    rxrpc: Fix retransmission algorithm · dfa7d920
    David Howells authored
    
    
    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: default avatarDavid Howells <dhowells@redhat.com>
    dfa7d920