Skip to content

Commit

Permalink
rxrpc: Add missing wakeup on Tx window rotation
Browse files Browse the repository at this point in the history
We need to wake up the sender when Tx window rotation due to an incoming
ACK makes space in the buffer otherwise the sender is liable to just hang
endlessly.

This problem isn't noticeable if the Tx phase transfers no more than will
fit in a single window or the Tx window rotates fast enough that it doesn't
get full.

Signed-off-by: David Howells <dhowells@redhat.com>
  • Loading branch information
David Howells committed Sep 13, 2016
1 parent 08a3968 commit bc4abfc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/rxrpc/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ static void rxrpc_rotate_tx_window(struct rxrpc_call *call, rxrpc_seq_t to)

spin_unlock(&call->lock);

wake_up(&call->waitq);

while (list) {
skb = list;
list = skb->next;
Expand Down

0 comments on commit bc4abfc

Please sign in to comment.