From: Michal Hocko <mhocko@suse.cz>
To: Johannes Weiner <hannes@cmpxchg.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>,
Hugh Dickins <hughd@google.com>,
Branimir Maksimovic <branimir.maksimovic@gmail.com>,
Stephan Kulow <coolo@suse.com>,
LKML <linux-kernel@vger.kernel.org>,
linux-mm@kvack.org
Subject: Re: [PATCH] memcg: fix swapcache charge from kernel thread context
Date: Mon, 19 May 2014 17:45:22 +0200 [thread overview]
Message-ID: <20140519154522.GE3017@dhcp22.suse.cz> (raw)
In-Reply-To: <20140519144946.GA1714@cmpxchg.org>
On Mon 19-05-14 08:49:47, Johannes Weiner wrote:
> On Mon, May 19, 2014 at 10:27:56AM +0200, Michal Hocko wrote:
[...]
> > [1] - http://marc.info/?l=linux-mm&m=139463617808941&w=2
> >
> > Fixes: 03583f1a631c (3.15-rc1)
>
> Shouldn't this be the same format as other commit references?
>
> Fixes: 03583f1a631c ("memcg: remove unnecessary !mm check from try_get_mem_cgroup_from_mm()")
No idea, I just wanted to make clear to which kernel this applies to.
But other users seem to use the long version as above. So I will change
it.
> > Reported-and-tested-by: Stephan Kulow <coolo@suse.com>
> > Reported-by: Branimir Maksimovic <branimir.maksimovic@gmail.com>
> > Signed-off-by: Michal Hocko <mhocko@suse.cz>
> > ---
> > mm/memcontrol.c | 26 +++++++++++++-------------
> > 1 file changed, 13 insertions(+), 13 deletions(-)
> >
> > diff --git a/mm/memcontrol.c b/mm/memcontrol.c
> > index 2cb81478d30c..2248a648a127 100644
> > --- a/mm/memcontrol.c
> > +++ b/mm/memcontrol.c
> > @@ -1061,9 +1061,17 @@ static struct mem_cgroup *get_mem_cgroup_from_mm(struct mm_struct *mm)
> >
> > rcu_read_lock();
> > do {
> > - memcg = mem_cgroup_from_task(rcu_dereference(mm->owner));
> > - if (unlikely(!memcg))
> > + /*
> > + * Page cache or loopback insertions can happen without an
> > + * actual mm context, e.g. during disk probing on boot
> > + */
>
> Please include the other usecases:
>
> /*
> * Page cache insertions can happen without an
> * actual mm context, e.g. during disk probing
> * on boot, loopback IO, acct() writes etc.
> */
OK.
> Otherwise,
> Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Thanks!
---
prev parent reply other threads:[~2014-05-19 15:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-19 8:27 Michal Hocko
2014-05-19 14:49 ` Johannes Weiner
2014-05-19 15:45 ` Michal Hocko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140519154522.GE3017@dhcp22.suse.cz \
--to=mhocko@suse.cz \
--cc=akpm@linux-foundation.org \
--cc=branimir.maksimovic@gmail.com \
--cc=coolo@suse.com \
--cc=hannes@cmpxchg.org \
--cc=hughd@google.com \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=kosaki.motohiro@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox