From: Sage Weil Date: Fri, 2 Apr 2010 23:07:19 +0000 (-0700) Subject: ceph: fix ack counter reset on connection reset X-Git-Tag: v2.6.34-rc5~17^2~5 X-Git-Url: http://bbs.cooldavid.org/git/?a=commitdiff_plain;h=0e0d5e0c4bb0476d53a43bfc87d03a25ec4b5579;p=net-next-2.6.git 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 --- diff --git a/fs/ceph/messenger.c b/fs/ceph/messenger.c index a32f0f896d9..f35b4945a9c 100644 --- a/fs/ceph/messenger.c +++ b/fs/ceph/messenger.c @@ -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; } /*