From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1FRLNv-0003g8-P2 for user-mode-linux-devel@lists.sourceforge.net; Wed, 05 Apr 2006 20:42:15 -0700 Received: from smtp-out.google.com ([216.239.45.12]) by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.44) id 1FRLNu-0003gM-LZ for user-mode-linux-devel@lists.sourceforge.net; Wed, 05 Apr 2006 20:42:15 -0700 Message-ID: <44348E08.1050502@google.com> From: Daniel Phillips MIME-Version: 1.0 Subject: Re: [uml-devel] Re: [PATCH 12/16] UML - Memory hotplug References: <200603241814.k2OIExNn005555@ccure.user-mode-linux.org> <20060324144535.37b3daf7.akpm@osdl.org> <20060325010524.GA8117@ccure.user-mode-linux.org> <44343E86.30301@google.com> <20060406015636.GE6924@ccure.user-mode-linux.org> In-Reply-To: <20060406015636.GE6924@ccure.user-mode-linux.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: user-mode-linux-devel-admin@lists.sourceforge.net Errors-To: user-mode-linux-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: The user-mode Linux development list List-Post: List-Help: List-Subscribe: , List-Archive: Date: Wed, 05 Apr 2006 20:42:00 -0700 To: Jeff Dike Cc: Andrew Morton , linux-kernel@vger.kernel.org, user-mode-linux-devel@lists.sourceforge.net Jeff Dike wrote: > Yeah, it's a bit non-obvious what 0 means in the twisty little maze of > GFP_ flags. > > However, I do want to push the system into reclaim later. It looks > like the only difference between 0 and GFP_ATOMIC is the use of > emergency pools, which I don't really want to exercise anyway. > > ...This look OK to you?... > > + /* 0 means don't wait (like GFP_ATOMIC) and > + * don't dip into emergency pools (unlike > + * GFP_ATOMIC). > + */ > + new = kmalloc(sizeof(*new), 0); If you have a believable use for gfp_mask=0 then why not add GFP_NOWAIT or some such to gfp.h? Regards, Daniel ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751361AbWDFDmX (ORCPT ); Wed, 5 Apr 2006 23:42:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751362AbWDFDmX (ORCPT ); Wed, 5 Apr 2006 23:42:23 -0400 Received: from smtp-out.google.com ([216.239.45.12]:16767 "EHLO smtp-out.google.com") by vger.kernel.org with ESMTP id S1751361AbWDFDmX (ORCPT ); Wed, 5 Apr 2006 23:42:23 -0400 DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=received:message-id:date:from:user-agent: x-accept-language:mime-version:to:cc:subject:references:in-reply-to: content-type:content-transfer-encoding; b=QywT3mim1xJiKnm2flSB/Z663sl8xnmKBHVi5kkvj+eFT9FHFSXmPeiJ8YzdOUMpd gAyfX5uCeuhEko3nN2egQ== Message-ID: <44348E08.1050502@google.com> Date: Wed, 05 Apr 2006 20:42:00 -0700 From: Daniel Phillips User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051011) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jeff Dike CC: Andrew Morton , linux-kernel@vger.kernel.org, user-mode-linux-devel@lists.sourceforge.net Subject: Re: [uml-devel] Re: [PATCH 12/16] UML - Memory hotplug References: <200603241814.k2OIExNn005555@ccure.user-mode-linux.org> <20060324144535.37b3daf7.akpm@osdl.org> <20060325010524.GA8117@ccure.user-mode-linux.org> <44343E86.30301@google.com> <20060406015636.GE6924@ccure.user-mode-linux.org> In-Reply-To: <20060406015636.GE6924@ccure.user-mode-linux.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Jeff Dike wrote: > Yeah, it's a bit non-obvious what 0 means in the twisty little maze of > GFP_ flags. > > However, I do want to push the system into reclaim later. It looks > like the only difference between 0 and GFP_ATOMIC is the use of > emergency pools, which I don't really want to exercise anyway. > > ...This look OK to you?... > > + /* 0 means don't wait (like GFP_ATOMIC) and > + * don't dip into emergency pools (unlike > + * GFP_ATOMIC). > + */ > + new = kmalloc(sizeof(*new), 0); If you have a believable use for gfp_mask=0 then why not add GFP_NOWAIT or some such to gfp.h? Regards, Daniel