On Tue, 6 Mar 2012 20:12:23 +0800 Sha Zhengju <handai.szj@xxxxxxxxx> wrote: > From: Sha Zhengju <handai.szj@xxxxxxxxxx> > > Index current_threshold should point to threshold just below or equal to usage. > See below: > http://www.spinics.net/lists/cgroups/msg00844.html I have a bad feeling that I looked at a version of this patch yesterday, but I can't find it. > --- a/mm/memcontrol.c > +++ b/mm/memcontrol.c > @@ -4398,7 +4398,7 @@ static void mem_cgroup_usage_unregister_event(struct cgroup *cgrp, > continue; > > new->entries[j] = thresholds->primary->entries[i]; > - if (new->entries[j].threshold < usage) { > + if (new->entries[j].threshold <= usage) { > /* > * new->current_threshold will not be used > * until rcu_assign_pointer(), so it's safe to increment What were the runtime effects of this bug? -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>