[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHGf_=ovR8Mwagaa2PpjEfjKpuqjvPdWX5Uy=Tyi2+B480WUBA@mail.gmail.com>
Date: Mon, 9 Jan 2012 11:49:14 -0500
From: KOSAKI Motohiro <kosaki.motohiro@...il.com>
To: Hillf Danton <dhillf@...il.com>
Cc: linux-mm@...ck.org,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>,
David Rientjes <rientjes@...gle.com>,
Andrew Morton <akpm@...ux-foundation.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] mm: vmscan: recompute page status when putting back
> If unlikely the given page is isolated from lru list again, its status is
> recomputed before putting back to lru list, since the comment says page's
> status can change while we move it among lru.
>
>
> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
> Cc: David Rientjes <rientjes@...gle.com>
> Cc: Andrew Morton <akpm@...ux-foundation.org>
> Signed-off-by: Hillf Danton <dhillf@...il.com>
> ---
>
> --- a/mm/vmscan.c Thu Dec 29 20:20:16 2011
> +++ b/mm/vmscan.c Fri Jan 6 21:31:56 2012
> @@ -633,12 +633,14 @@ int remove_mapping(struct address_space
> void putback_lru_page(struct page *page)
> {
> int lru;
> - int active = !!TestClearPageActive(page);
> - int was_unevictable = PageUnevictable(page);
> + int active;
> + int was_unevictable;
>
> VM_BUG_ON(PageLRU(page));
>
> redo:
> + active = !!TestClearPageActive(page);
> + was_unevictable = PageUnevictable(page);
> ClearPageUnevictable(page);
When and How do this race happen?
--
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