Return-Path: Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com [209.85.212.173]) by kanga.kvack.org (Postfix) with ESMTP id BD1F86B006C for ; Tue, 25 Nov 2014 09:32:29 -0500 (EST) Received: by mail-wi0-f173.google.com with SMTP id r20so9312230wiv.6 for ; Tue, 25 Nov 2014 06:32:29 -0800 (PST) Received: from kirsi1.inet.fi (mta-out1.inet.fi. [62.71.2.203]) by mx.google.com with ESMTP id bo7si738720wib.95.2014.11.25.06.32.28 for ; Tue, 25 Nov 2014 06:32:28 -0800 (PST) Date: Tue, 25 Nov 2014 16:32:19 +0200 From: "Kirill A. Shutemov" Subject: Re: [PATCH] mm, gfp: escalatedly define GFP_HIGHUSER and GFP_HIGHUSER_MOVABLE Message-ID: <20141125143219.GC11841@node.dhcp.inet.fi> References: <1416847427-2550-1-git-send-email-nasa4836@gmail.com> <20141124190127.GA5027@node.dhcp.inet.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: David Rientjes Cc: Jianyu Zhan , akpm@linux-foundation.org, mgorman@suse.de, riel@redhat.com, sasha.levin@oracle.com, n-horiguchi@ah.jp.nec.com, andriy.shevchenko@linux.intel.com, hannes@cmpxchg.org, vdavydov@parallels.com, fabf@skynet.be, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Jianyu Zhan On Mon, Nov 24, 2014 at 01:35:00PM -0800, David Rientjes wrote: > On Mon, 24 Nov 2014, Kirill A. Shutemov wrote: > > > But I would prefer to have GPF_HIGHUSER movable by default and > > GFP_HIGHUSER_UNMOVABLE to opt out. > > > > Sounds like a separate patch. There are few questions before preparing patch: 1. Compatibility: some code which is not yet in tree can rely on non-movable behaviour of GFP_HIGHUSER. How would we handle this? Should we invent new name for the movable GFP_HIGHUSER? 2. Should GFP_USER be movable too? And the same compatibility question here. 3. Do we need a separate define for non-movable GPF_HIGHUSER or caller should use something like GPF_HIGHUSER & ~__GFP_MOVABLE? 4. Is there a gain, taking into account questions above? -- Kirill A. Shutemov -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org