[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140508183004.GQ19914@cmpxchg.org>
Date: Thu, 8 May 2014 14:30:04 -0400
From: Johannes Weiner <hannes@...xchg.org>
To: Michal Hocko <mhocko@...e.cz>
Cc: linux-mm@...ck.org, Hugh Dickins <hughd@...gle.com>,
Tejun Heo <tj@...nel.org>, cgroups@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [patch 4/9] mm: memcontrol: catch root bypass in move precharge
On Wed, May 07, 2014 at 04:55:53PM +0200, Michal Hocko wrote:
> On Wed 30-04-14 16:25:38, Johannes Weiner wrote:
> [...]
> > @@ -6546,8 +6546,9 @@ one_by_one:
> > cond_resched();
> > }
> > ret = mem_cgroup_try_charge(memcg, GFP_KERNEL, 1, false);
> > + if (ret == -EINTR)
> > + __mem_cgroup_cancel_charge(root_mem_cgroup, 1);
> > if (ret)
> > - /* mem_cgroup_clear_mc() will do uncharge later */
>
> I would prefer to keep the comment and explain that we will loose return
> code on the way and that is why cancel on root has to be done here.
That makes sense, I'll add an explanation of who is (un)charged when
and where. Thanks!
--
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