From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail203.messagelabs.com (mail203.messagelabs.com [216.82.254.243]) by kanga.kvack.org (Postfix) with ESMTP id D19F06B0087 for ; Wed, 8 Dec 2010 11:43:41 -0500 (EST) Date: Wed, 8 Dec 2010 17:43:27 +0100 From: Johannes Weiner Subject: Re: [PATCH] compaction: Remove mem_cgroup_del_lru Message-ID: <20101208164327.GL2356@cmpxchg.org> References: <1291734086-1405-1-git-send-email-minchan.kim@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1291734086-1405-1-git-send-email-minchan.kim@gmail.com> Sender: owner-linux-mm@kvack.org To: Minchan Kim Cc: Andrew Morton , linux-mm , LKML , Balbir Singh , KAMEZAWA Hiroyuki , Mel Gorman List-ID: On Wed, Dec 08, 2010 at 12:01:26AM +0900, Minchan Kim wrote: > del_page_from_lru_list alreay called mem_cgroup_del_lru. > So we need to call it again. It makes wrong stat of memcg and > even happen VM_BUG_ON hit. > > Cc: Balbir Singh > Cc: KAMEZAWA Hiroyuki > Cc: Mel Gorman > Signed-off-by: Minchan Kim Reviewed-by: Johannes Weiner But regarding the severity of this: shouldn't the second deletion attempt be caught by the TestClearPageCgroupAcctLRU() early in mem_cgroup_del_lru_list()? -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/ Don't email: email@kvack.org