Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758634Ab2FOXWE (ORCPT ); Fri, 15 Jun 2012 19:22:04 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:40798 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758549Ab2FOXWB (ORCPT ); Fri, 15 Jun 2012 19:22:01 -0400 Date: Sat, 16 Jun 2012 08:21:51 +0900 From: Minchan Kim To: KOSAKI Motohiro Cc: Minchan Kim , linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, KOSAKI Motohiro , David Rientjes , Mel Gorman , Johannes Weiner , Minchan Kim , Wu Fengguang , KAMEZAWA Hiroyuki , Rik van Riel Subject: Re: [PATCH] mm: clear pages_scanned only if draining a pcp adds pages to the buddy allocator again Message-ID: <20120615232151.GA2749@barrios> References: <1339690570-7471-1-git-send-email-kosaki.motohiro@gmail.com> <4FDAE1F0.4030708@kernel.org> <4FDB5A42.9020707@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FDB5A42.9020707@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1569 Lines: 41 On Fri, Jun 15, 2012 at 11:52:34AM -0400, KOSAKI Motohiro wrote: > (6/15/12 3:19 AM), Minchan Kim wrote: > >On 06/15/2012 01:16 AM, kosaki.motohiro@gmail.com wrote: > > > >>From: KOSAKI Motohiro > >> > >>commit 2ff754fa8f (mm: clear pages_scanned only if draining a pcp adds pages > >>to the buddy allocator again) fixed one free_pcppages_bulk() misuse. But two > >>another miuse still exist. > >> > >>This patch fixes it. > >> > >>Cc: David Rientjes > >>Cc: Mel Gorman > >>Cc: Johannes Weiner > >>Cc: Minchan Kim > >>Cc: Wu Fengguang > >>Cc: KAMEZAWA Hiroyuki > >>Cc: Rik van Riel > >>Cc: Andrew Morton > >>Signed-off-by: KOSAKI Motohiro > > > >Reviewed-by: Minchan Kim > > > >Just nitpick. > >Personally, I want to fix it follwing as > >It's more simple and reduce vulnerable error in future. > > > >If you mind, go ahead with your version. I am not against with it, either. > > I don't like your version because free_pcppages_bulk() can be called from > free_pages() hotpath. then, i wouldn't like to put a branch if we can avoid it. Fair enough. Thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/