linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Minchan Kim <minchan.kim@gmail.com>
To: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Cc: Johannes Weiner <hannes@cmpxchg.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Balbir Singh <balbir@linux.vnet.ibm.com>,
	KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
	LKML <linux-kernel@vger.kernel.org>,
	linux-mm <linux-mm@kvack.org>
Subject: Re: [BUGFIX][PATCH] memcg: fix memory migration of shmem swapcache
Date: Thu, 6 Jan 2011 11:49:36 +0900	[thread overview]
Message-ID: <AANLkTi=rp=WZa7PP4V6anU0SQ3BM-RJQwiDu1fJuoDig@mail.gmail.com> (raw)
In-Reply-To: <20110106100923.24b1dd12.nishimura@mxp.nes.nec.co.jp>

On Thu, Jan 6, 2011 at 10:09 AM, Daisuke Nishimura
<nishimura@mxp.nes.nec.co.jp> wrote:
> On Wed, 5 Jan 2011 12:58:40 +0100
> Johannes Weiner <hannes@cmpxchg.org> wrote:
>
>> On Wed, Jan 05, 2011 at 01:00:20PM +0900, Daisuke Nishimura wrote:
>> > In current implimentation, mem_cgroup_end_migration() decides whether the page
>> > migration has succeeded or not by checking "oldpage->mapping".
>> >
>> > But if we are tring to migrate a shmem swapcache, the page->mapping of it is
>> > NULL from the begining, so the check would be invalid.
>> > As a result, mem_cgroup_end_migration() assumes the migration has succeeded
>> > even if it's not, so "newpage" would be freed while it's not uncharged

  parent reply	other threads:[~2011-01-06  2:49 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-05  4:00 Daisuke Nishimura
2011-01-05  4:48 ` Minchan Kim
2011-01-05  6:47   ` Daisuke Nishimura
2011-01-05  7:18     ` Minchan Kim
2011-01-06  0:52     ` KAMEZAWA Hiroyuki
2011-01-06  2:51       ` Minchan Kim
2011-01-05 11:58 ` Johannes Weiner
2011-01-06  1:09   ` Daisuke Nishimura
2011-01-06  1:55     ` KAMEZAWA Hiroyuki
2011-01-06  2:49     ` Minchan Kim [this message]
2011-01-06  3:34       ` [BUGFIX][PATCH v3] " Daisuke Nishimura
2011-01-06  5:42         ` Balbir Singh
2011-01-06  6:29           ` [BUGFIX][PATCH v4] " Daisuke Nishimura
2011-01-08  9:26             ` Johannes Weiner
2011-01-10  9:05             ` Balbir Singh

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='AANLkTi=rp=WZa7PP4V6anU0SQ3BM-RJQwiDu1fJuoDig@mail.gmail.com' \
    --to=minchan.kim@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=balbir@linux.vnet.ibm.com \
    --cc=hannes@cmpxchg.org \
    --cc=kamezawa.hiroyu@jp.fujitsu.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=nishimura@mxp.nes.nec.co.jp \
    /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