Return-Path: Received: from bombadil.infradead.org ([65.50.211.133]:35583 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750780AbdLGFeh (ORCPT ); Thu, 7 Dec 2017 00:34:37 -0500 Date: Wed, 6 Dec 2017 21:34:29 -0800 From: Matthew Wilcox To: NeilBrown Cc: Linus Torvalds , Trond Myklebust , Anna Schumaker , Al Viro , Andrew Morton , lkml , "linux-nfs@vger.kernel.org" , linux-fsdevel , Lennart Poettering Subject: Re: [PATCH] NFS: allow name_to_handle_at() to work for Amazon EFS. Message-ID: <20171207053429.GB2739@bombadil.infradead.org> References: <87po7zv62h.fsf@notabene.neil.brown.name> <87r2s7ql5m.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <87r2s7ql5m.fsf@notabene.neil.brown.name> Sender: linux-nfs-owner@vger.kernel.org List-ID: On Thu, Dec 07, 2017 at 02:20:05PM +1100, NeilBrown wrote: > We can allocate in fs/notify/fdinfo.c:show_fdinfo() which is > the earliest 'notify' specific code to run. There is no > opportunity to return an error but GFP_KERNEL allocations under 1 page > never fail.. "never" * The default allocator behavior depends on the request size. We have a concept * of so called costly allocations (with order > PAGE_ALLOC_COSTLY_ORDER). * !costly allocations are too essential to fail so they are implicitly * non-failing by default (with some exceptions like OOM victims might fail so * the caller still has to check for failures) while costly requests try to be * not disruptive and back off even without invoking the OOM killer. * The following three modifiers might be used to override some of these * implicit rules