Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754015Ab2JPNxR (ORCPT ); Tue, 16 Oct 2012 09:53:17 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:63554 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753267Ab2JPNxP (ORCPT ); Tue, 16 Oct 2012 09:53:15 -0400 Date: Tue, 16 Oct 2012 22:53:08 +0900 From: Minchan Kim To: Ming Lei Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-pm@vger.kernel.org, Alan Stern , Oliver Neukum , Jiri Kosina , Andrew Morton , Mel Gorman , KAMEZAWA Hiroyuki , Michal Hocko , Ingo Molnar , Peter Zijlstra , "Rafael J. Wysocki" , linux-mm Subject: Re: [RFC PATCH 1/3] mm: teach mm by current context info to not do I/O during memory allocation Message-ID: <20121016135308.GA6958@barrios> References: <1350278059-14904-1-git-send-email-ming.lei@canonical.com> <1350278059-14904-2-git-send-email-ming.lei@canonical.com> <20121015154724.GA2840@barrios> <20121016054946.GA3934@barrios> <20121016130927.GA5603@barrios> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: 946 Lines: 29 On Tue, Oct 16, 2012 at 09:47:03PM +0800, Ming Lei wrote: > On Tue, Oct 16, 2012 at 9:09 PM, Minchan Kim wrote: > > > > Good point. You can check it in __zone_reclaim and change gfp_mask of scan_control > > because it's never hot path. > > > >> > >> So could you make sure it is safe to move the branch into > >> __alloc_pages_slowpath()? If so, I will add the check into > >> gfp_to_alloc_flags(). > > > > How about this? > > It is quite smart change, :-) > > Considered that other part(sched.h) of the patch need update, I > will merge your change into -v1 for further review with your > Signed-off-by if you have no objection. No problem. :) -- Kind Regards, Minchan Kim -- 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/