From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754908AbbCBUef (ORCPT ); Mon, 2 Mar 2015 15:34:35 -0500 Received: from mail-ie0-f175.google.com ([209.85.223.175]:37545 "EHLO mail-ie0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754638AbbCBUed (ORCPT ); Mon, 2 Mar 2015 15:34:33 -0500 Date: Mon, 2 Mar 2015 12:34:30 -0800 (PST) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Michal Hocko cc: linux-mm@kvack.org, Andrew Morton , Johannes Weiner , Dave Chinner , "Theodore Ts'o" , Mel Gorman , Tetsuo Handa , "David S. Miller" , sparclinux@vger.kernel.org, Vipul Pandya , netdev@vger.kernel.org, LKML Subject: Re: [RFC 1/4] mm: Clarify __GFP_NOFAIL deprecation status In-Reply-To: <1425304483-7987-2-git-send-email-mhocko@suse.cz> Message-ID: References: <1425304483-7987-1-git-send-email-mhocko@suse.cz> <1425304483-7987-2-git-send-email-mhocko@suse.cz> 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 On Mon, 2 Mar 2015, Michal Hocko wrote: > diff --git a/include/linux/gfp.h b/include/linux/gfp.h > index 51bd1e72a917..0cf9c2772988 100644 > --- a/include/linux/gfp.h > +++ b/include/linux/gfp.h > @@ -57,8 +57,10 @@ struct vm_area_struct; > * _might_ fail. This depends upon the particular VM implementation. > * > * __GFP_NOFAIL: The VM implementation _must_ retry infinitely: the caller > - * cannot handle allocation failures. This modifier is deprecated and no new > - * users should be added. > + * cannot handle allocation failures. New users should be evaluated carefuly > + * (and the flag should be used only when there is no reasonable failure policy) > + * but it is definitely preferable to use the flag rather than opencode endless > + * loop around allocator. > * > * __GFP_NORETRY: The VM implementation must not retry indefinitely. > * s/carefuly/carefully/ Acked-by: David Rientjes