Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp633489pxu; Thu, 3 Dec 2020 08:55:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJxdc87tmwkVXgS+lk72RWr78l8U96kP93SeyxQYWcjI8ClodZ2edXrLavwExZDo5XbESr8S X-Received: by 2002:a17:907:411b:: with SMTP id nw19mr3266615ejb.150.1607014552413; Thu, 03 Dec 2020 08:55:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607014552; cv=none; d=google.com; s=arc-20160816; b=XMWJB1Hr1GqOeivDfXHmG8uPl8tELCArL6Cy/SDrurkAEm7q3SzxUxLKWDTwQfiFK0 DQQXO93fWmC2ciJMf6c0CQyOicNALQESGA8NqQHfY8cCOawI8QresMQNHBIDFede98TK N9XtUdz1gihwxU1hlcqXfY7Pw+6nkZAXqMBH3EFgH74PkGIaz4Ujtmykx8LaG5FBAIHK isLV4si3/AVlXJIAt5mtOF5BYjTUrSMgB9WR6EU4BCMbbVI0YlL15YSIJCMfJKSVWrI5 f4U1Ie5XCTWSTNsIpTggUTJuaQx6uB3gBaUM9qIGXKuSXD9ZW3BrfQANFkPdMpKMz+NR h3PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=j9IsbDfnAl1qZX4VCgT+JSlCiNo07VX/EW3AlozOMXU=; b=A5VzZ50T5SkGz1s9gGiUPTBBpjLSUkVbuIlImIXikgUk82eMQc+9vQ5SJttWxmNf30 wL/jaugUfIWuX/4ULhXKYb5luXPjAnSo0rZCbjK1T1its0cy1mXpqHzgNXSL4r9uNCxX 05UIzFoTFhGt+IEC7qtl2L8XXKswUade+2ur4WaP6tjxBijgJ7+jhgJmR03Igk8S+ZtE jAnh+dNiCEXVhhW7+Dj31zFvth9zq6hRAZBPDxRXPC3kuG5wj/HuvLwv5K6TqM/69xMS Udffv3LSJrMeeAmIn5EY9k6iZqIf5pO0G77YBrzkQnuDFbCMJWQypIs6iiPqv0Jau5nZ Zwrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=hSzd2Q4M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nw19si1394490ejb.586.2020.12.03.08.55.28; Thu, 03 Dec 2020 08:55:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=hSzd2Q4M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436526AbgLCQvz (ORCPT + 99 others); Thu, 3 Dec 2020 11:51:55 -0500 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:8971 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726828AbgLCQvz (ORCPT ); Thu, 3 Dec 2020 11:51:55 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Thu, 03 Dec 2020 08:51:14 -0800 Received: from [10.2.53.244] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 3 Dec 2020 16:51:08 +0000 Subject: Re: [PATCH 5/6] mm: honor PF_MEMALLOC_NOMOVABLE for all allocations To: Pavel Tatashin CC: LKML , linux-mm , "Andrew Morton" , Vlastimil Babka , "Michal Hocko" , David Hildenbrand , Oscar Salvador , Dan Williams , Sasha Levin , Tyler Hicks , Joonsoo Kim , , Steven Rostedt , Ingo Molnar , Jason Gunthorpe , Peter Zijlstra , Mel Gorman , Matthew Wilcox , David Rientjes References: <20201202052330.474592-1-pasha.tatashin@soleen.com> <20201202052330.474592-6-pasha.tatashin@soleen.com> <18c9ab89-185b-395a-97ce-31940388df0e@nvidia.com> From: John Hubbard Message-ID: Date: Thu, 3 Dec 2020 08:51:08 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:83.0) Gecko/20100101 Thunderbird/83.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1607014274; bh=j9IsbDfnAl1qZX4VCgT+JSlCiNo07VX/EW3AlozOMXU=; h=Subject:To:CC:References:From:Message-ID:Date:User-Agent: MIME-Version:In-Reply-To:Content-Type:Content-Language: Content-Transfer-Encoding:X-Originating-IP:X-ClientProxiedBy; b=hSzd2Q4M3B5A8VY3+3PRm6nr0EEdF7f4dRpuF3yGwczoajchGNPF7U3Hlq7e+KFTu NixR+30OGDTFQQZzVYd8730A871Cg/AZ7CUY9vb4/aeM2QW8hov6sMs0ZJMnuG9pkX +XCZhgGGn3KIaSM49mpInJjdPS8T5j+V3xIRJTJJPM75gY1dJYiNzOoRHDoxbHNwxZ Vg0T7J4CIbCms8mMaCF+3WSnxYr2qVKsfV/fG0Mb90DjBeXMckT9Osgc1z2X0YQ6MO VledQ6ELgzQ54XirC88eq9Jmt3QMoaBmt2sHnUuQKWdhwrZSevREhZtrgSZZAaoF7V Tk45xlZejOzDg== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/3/20 7:06 AM, Pavel Tatashin wrote: ... >>> diff --git a/mm/page_alloc.c b/mm/page_alloc.c >>> index 611799c72da5..7a6d86d0bc5f 100644 >>> --- a/mm/page_alloc.c >>> +++ b/mm/page_alloc.c >>> @@ -3766,20 +3766,25 @@ alloc_flags_nofragment(struct zone *zone, gfp_t gfp_mask) >>> return alloc_flags; >>> } >>> >>> -static inline unsigned int current_alloc_flags(gfp_t gfp_mask, >>> - unsigned int alloc_flags) >>> +static inline unsigned int cma_alloc_flags(gfp_t gfp_mask, >>> + unsigned int alloc_flags) >> >> Actually, maybe the original name should be left intact. This handles current alloc >> flags, which right now happen to only cover CMA flags, so the original name seems >> accurate, right? > > The reason I re-named it is because we do not access current context > anymore, only use gfp_mask to get cma flag. >>> - unsigned int pflags = current->flags; > > So, keeping "current" in the function name makes its intent misleading. > OK, I see. That sounds OK then. thanks, -- John Hubbard NVIDIA