浏览代码

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>
Sage Weil 15 年之前
父节点
当前提交
0e0d5e0c4b
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      fs/ceph/messenger.c

+ 1 - 0
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;
 }
 
 /*