Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751478AbcDNT4d (ORCPT ); Thu, 14 Apr 2016 15:56:33 -0400 Received: from mail-pf0-f178.google.com ([209.85.192.178]:36726 "EHLO mail-pf0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750956AbcDNT4b (ORCPT ); Thu, 14 Apr 2016 15:56:31 -0400 Date: Thu, 14 Apr 2016 12:56:28 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Michal Hocko cc: linux-mm@kvack.org, Andrew Morton , LKML , Michal Hocko , linux-arch@vger.kernel.org Subject: Re: [PATCH 01/19] tree wide: get rid of __GFP_REPEAT for order-0 allocations part I In-Reply-To: <1460372892-8157-2-git-send-email-mhocko@kernel.org> Message-ID: References: <1460372892-8157-1-git-send-email-mhocko@kernel.org> <1460372892-8157-2-git-send-email-mhocko@kernel.org> 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: 1126 Lines: 24 On Mon, 11 Apr 2016, Michal Hocko wrote: > From: Michal Hocko > > __GFP_REPEAT has a rather weak semantic but since it has been introduced > around 2.6.12 it has been ignored for low order allocations. Yet we have > the full kernel tree with its usage for apparently order-0 allocations. > This is really confusing because __GFP_REPEAT is explicitly documented > to allow allocation failures which is a weaker semantic than the current > order-0 has (basically nofail). > > Let's simply drop __GFP_REPEAT from those places. This would allow > to identify place which really need allocator to retry harder and > formulate a more specific semantic for what the flag is supposed to do > actually. > > Cc: linux-arch@vger.kernel.org > Signed-off-by: Michal Hocko I did exactly this before, and Andrew objected saying that __GFP_REPEAT may not be needed for the current page allocator's implementation but could with others and that setting __GFP_REPEAT for an allocation provided useful information with regards to intent. At the time, I attempted to eliminate __GFP_REPEAT entirely.