aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-04-02 19:07:19 -0400
committerSage Weil <sage@newdream.net>2010-04-02 19:07:19 -0400
commit0e0d5e0c4bb0476d53a43bfc87d03a25ec4b5579 (patch)
tree66013a33ad1f46b258d55289adf12cac463d43f9
parent819ccbfa448403992ceafc05d6d7097aaa74d4c3 (diff)
ceph: fix ack counter reset on connection reset
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>
-rw-r--r--fs/ceph/messenger.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/messenger.c b/fs/ceph/messenger.c
index a32f0f896d9f..f35b4945a9c3 100644
--- a/fs/ceph/messenger.c
+++ b/fs/ceph/messenger.c
@@ -332,6 +332,7 @@ static void reset_connection(struct ceph_connection *con)
332 con->out_msg = NULL; 332 con->out_msg = NULL;
333 } 333 }
334 con->in_seq = 0; 334 con->in_seq = 0;
335 con->in_seq_acked = 0;
335} 336}
336 337
337/* 338/*