Skip to content

Commit

Permalink
ceph: fix ack counter reset on connection reset
Browse files Browse the repository at this point in the history
If in_seq_acked isn't reset along with in_seq, we don't ack received
messages until we reach the old count, consuming gobs memory on the other
end of the connection and introducing a large delay when those messages
are eventually deleted.

Signed-off-by: Sage Weil <sage@newdream.net>
  • Loading branch information
Sage Weil committed Apr 2, 2010
1 parent 819ccbf commit 0e0d5e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/ceph/messenger.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ static void reset_connection(struct ceph_connection *con)
con->out_msg = NULL;
}
con->in_seq = 0;
con->in_seq_acked = 0;
}

/*
Expand Down

0 comments on commit 0e0d5e0

Please sign in to comment.