From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755700AbZEDN6k (ORCPT ); Mon, 4 May 2009 09:58:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754242AbZEDN6b (ORCPT ); Mon, 4 May 2009 09:58:31 -0400 Received: from smtp.ultrahosting.com ([74.213.174.254]:49262 "EHLO smtp.ultrahosting.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751733AbZEDN6a (ORCPT ); Mon, 4 May 2009 09:58:30 -0400 Date: Mon, 4 May 2009 09:47:45 -0400 (EDT) From: Christoph Lameter X-X-Sender: cl@qirst.com To: Cyrill Gorcunov cc: Ingo Molnar , Andrew Morton , Mel Gorman , LKML , Pekka Enberg , Rik van Riel , David Rientjes , Pavel Emelyanov Subject: Re: [PATCH -tip] mm: introduce __GFP_PANIC modifier In-Reply-To: <20090504131638.GJ4173@lenovo> Message-ID: References: <20090504122740.GH4173@lenovo> <20090504131311.GA23330@elte.hu> <20090504131638.GJ4173@lenovo> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Could you try to avoid consuming another GFP flag? __GFP_BITS_SHIFT is used elsewhere to figure out where to put miscellanous flags into the gfp mask. This is pretty limited right now and so the patch does work. But maybe we can combine some flags __GFP_NOFAIL | __GFP_REPEAT or so? __GFP_NOFAIL already has the semantics that the allocation cannot fail and that the page allocator must never return NULL.