Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751721Ab2JOOlv (ORCPT ); Mon, 15 Oct 2012 10:41:51 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:40497 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750781Ab2JOOlt (ORCPT ); Mon, 15 Oct 2012 10:41:49 -0400 MIME-Version: 1.0 In-Reply-To: References: <1350278059-14904-2-git-send-email-ming.lei@canonical.com> Date: Mon, 15 Oct 2012 22:41:48 +0800 Message-ID: Subject: Re: [RFC PATCH 1/3] mm: teach mm by current context info to not do I/O during memory allocation From: Ming Lei To: Alan Stern Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-pm@vger.kernel.org, Oliver Neukum , Jiri Kosina , Andrew Morton , Mel Gorman , Minchan Kim , KAMEZAWA Hiroyuki , Michal Hocko , Ingo Molnar , Peter Zijlstra , "Rafael J. Wysocki" , linux-mm Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 806 Lines: 22 On Mon, Oct 15, 2012 at 10:33 PM, Alan Stern wrote: > > Instead of allow/forbid, the API should be save/restore (like > local_irq_save and local_irq_restore). This makes nesting much easier. Good point. > Also, do we really the "p" argument? This is not at all likely to be > used with any task other than the current one. Yes, only 'current' can be passed now. I keep it because no performance effect with macro implementation. But that is not good since it may cause misuse. Will remove the 'p' argument. Thanks, -- Ming Lei -- 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/