[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140716145736.GA9794@nhori.redhat.com>
Date: Wed, 16 Jul 2014 10:57:36 -0400
From: Naoya Horiguchi <n-horiguchi@...jp.nec.com>
To: Johannes Weiner <hannes@...xchg.org>
Cc: Michal Hocko <mhocko@...e.cz>,
Andrew Morton <akpm@...ux-foundation.org>,
Hugh Dickins <hughd@...gle.com>, Tejun Heo <tj@...nel.org>,
Vladimir Davydov <vdavydov@...allels.com>, linux-mm@...ck.org,
cgroups@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [patch 13/13] mm: memcontrol: rewrite uncharge API
On Wed, Jul 16, 2014 at 10:14:47AM -0400, Johannes Weiner wrote:
...
> > > free_hot_cold_page(page, false);
> > > }
> > >
> > > @@ -75,7 +75,10 @@ static void __put_compound_page(struct page *page)
> > > {
> > > compound_page_dtor *dtor;
> > >
> > > - __page_cache_release(page);
> > > + if (!PageHuge(page)) {
> > > + __page_cache_release(page);
> > > + mem_cgroup_uncharge_page(page);
>
> I reverted all these mm/swap.c changes again as well. Instead,
> mem_cgroup_uncharge() now does a preliminary check if the page is
> charged before it touches page->lru.
>
> That should be much more robust: now the vetting whether a page is
> valid for memcg happens at charge time only, all other operations
> check first if a page is charged before doing anything else to it.
>
> These two places should be the only ones that need fixing then:
This change also passed my testing, so the problem should be fixed.
Thanks,
Naoya Horiguchi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists