Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753304AbbBZBFD (ORCPT ); Wed, 25 Feb 2015 20:05:03 -0500 Received: from mail-ig0-f174.google.com ([209.85.213.174]:50950 "EHLO mail-ig0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752646AbbBZBE7 (ORCPT ); Wed, 25 Feb 2015 20:04:59 -0500 Date: Wed, 25 Feb 2015 17:04:56 -0800 (PST) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Christoph Lameter cc: Andrew Morton , Vlastimil Babka , Pekka Enberg , Joonsoo Kim , Johannes Weiner , Mel Gorman , Pravin Shelar , Jarno Rajahalme , Greg Thelen , linux-kernel@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, dev@openvswitch.org Subject: Re: [patch 1/2] mm: remove GFP_THISNODE In-Reply-To: Message-ID: References: User-Agent: Alpine 2.10 (DEB 1266 2009-07-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 Content-Length: 1208 Lines: 27 On Wed, 25 Feb 2015, Christoph Lameter wrote: > On Wed, 25 Feb 2015, David Rientjes wrote: > > > NOTE: this is not about __GFP_THISNODE, this is only about GFP_THISNODE. > > Well but then its not removing it. You are replacing it with an inline > function. > Removing GFP_THISNODE, not __GFP_THISNODE. GFP_THISNODE, as the commit message says, is a special collection of flags that means "never try reclaim" and people confuse it for __GFP_THISNODE. There are legitimate usecases where we want __GFP_THISNODE, in other words restricting the allocation to only a specific node, and try reclaim but not warn in failure or retry. The most notable example is in the followup patch for thp, both for page faults and khugepaged, where we want to target the local node but silently fallback to small pages instead. This removes the special "no reclaim" behavior of __GFP_THISNODE | __GFP_NORETRY | __GFP_NOWARN and relies on clearing __GFP_WAIT instead. -- 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/