[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100326120429.6C98.A69D9226@jp.fujitsu.com>
Date: Fri, 26 Mar 2010 12:07:02 +0900 (JST)
From: KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
To: Mel Gorman <mel@....ul.ie>
Cc: kosaki.motohiro@...fujitsu.com,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>,
Minchan Kim <minchan.kim@...il.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Andrea Arcangeli <aarcange@...hat.com>,
Christoph Lameter <cl@...ux-foundation.org>,
Adam Litke <agl@...ibm.com>, Avi Kivity <avi@...hat.com>,
David Rientjes <rientjes@...gle.com>,
Rik van Riel <riel@...hat.com>, linux-kernel@...r.kernel.org,
linux-mm@...ck.org
Subject: Re: [PATCH 02/11] mm,migration: Do not try to migrate unmapped anonymous pages
very small nit
> There were minor changes in how the rcu_read_lock is taken and released
> based on other comments. With your suggestion, the block now looks like;
>
> if (PageAnon(page)) {
> rcu_read_lock();
> rcu_locked = 1;
>
> /*
> * If the page has no mappings any more, just bail. An
> * unmapped anon page is likely to be freed soon but
> * worse,
> * it's possible its anon_vma disappeared between when
> * the page was isolated and when we reached here while
> * the RCU lock was not held
> */
> if (!page_mapcount(page) && !PageSwapCache(page))
page_mapped?
> goto rcu_unlock;
>
> anon_vma = page_anon_vma(page);
> atomic_inc(&anon_vma->external_refcount);
> }
--
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