Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp235225imu; Tue, 8 Jan 2019 18:40:28 -0800 (PST) X-Google-Smtp-Source: ALg8bN7cIsqXA23bCIFXO0GwIhh0q+jcJ5nJYFCKJN7TgVPJNhZ+/ryupwiVvIqVECkiWmFwpQAZ X-Received: by 2002:a17:902:2969:: with SMTP id g96mr4239983plb.295.1547001628185; Tue, 08 Jan 2019 18:40:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547001628; cv=none; d=google.com; s=arc-20160816; b=MMwk9OKcOC4vMbhL76AafatrHbsE3zjSsUxduxBuzHwvy666okrIaX7djOk08KryNn CasHhGOiHyEtPBRNB1dDwwLupq+V4RkcpzTu40CZpkkJZcZ+o4HE4RUvbNy4j8VHwRPC 899O+GwMVa05akv6+2euIUtRuMLuKwPT+jG8AMmWyFTZAakVwkhi+2HmVNk/NmYxfNrZ LGob/qQ1t2BBeojgZ97CnzpsCXgoxS7yYs5VOhBDh1bVAO68bzJ8cENDN4QW+uKDFoiL 6UNcxcBW4QUIZCusItSU417t8opFVpCNr6WddtE/bEa+Krnuo9y5EhxI0tdQDMHbi+tD 1NbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=lyvummSZVIb1D6d6MUZPRzUR3n/q6A652frvPsIvvtw=; b=RBRUOih2i0inQOOV6Kis4F5AiEwbs1oSR/2m7zp6IOezGB3f9B8op4odUh6JrP5BR8 CyxHs+BUbLV9jpyv/LeCzBWvyLvCg4qPN3xuGEdeaf2+F3AJzdqRrzoYPCTvY5j0OSp5 WLFJo4SVYorXj0DJLvL60fHK2dFcHxbXkY+qX02aL6WrRCLzwkaix6zM80k3aNHcmuD1 bcwZJWMLJSvzXJ5DzLTcrifttI36YE9IeP4jP/7rFRL7DIaw3M5hg/vGNeRBXBzd0DvS kSdRwQD/1G801+tDTnR7jNXpSJPafVGTv3WhhNhLxRvqqovDxQbCgUsX3kDKTcKT/vIi blag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m187si14221891pfm.51.2019.01.08.18.40.13; Tue, 08 Jan 2019 18:40:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729152AbfAICiQ (ORCPT + 99 others); Tue, 8 Jan 2019 21:38:16 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59412 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727917AbfAICiQ (ORCPT ); Tue, 8 Jan 2019 21:38:16 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9FD5DC056797; Wed, 9 Jan 2019 02:38:15 +0000 (UTC) Received: from sky.random (ovpn-120-73.rdu2.redhat.com [10.10.120.73]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A3C7A600C8; Wed, 9 Jan 2019 02:38:14 +0000 (UTC) Date: Tue, 8 Jan 2019 21:38:12 -0500 From: Andrea Arcangeli To: "Aneesh Kumar K.V" Cc: akpm@linux-foundation.org, Michal Hocko , Alexey Kardashevskiy , David Gibson , mpe@ellerman.id.au, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH V6 1/4] mm/cma: Add PF flag to force non cma alloc Message-ID: <20190109023812.GF20586@redhat.com> References: <20190108045110.28597-1-aneesh.kumar@linux.ibm.com> <20190108045110.28597-2-aneesh.kumar@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190108045110.28597-2-aneesh.kumar@linux.ibm.com> User-Agent: Mutt/1.11.1 (2018-12-01) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Wed, 09 Jan 2019 02:38:16 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 08, 2019 at 10:21:07AM +0530, Aneesh Kumar K.V wrote: > This patch add PF_MEMALLOC_NOCMA which make sure any allocation in that context > is marked non movable and hence cannot be satisfied by CMA region. > > This is useful with get_user_pages_cma_migrate where we take a page pin by > migrating pages from CMA region. Marking the section PF_MEMALLOC_NOCMA ensures > that we avoid uncessary page migration later. > > Suggested-by: Andrea Arcangeli > Signed-off-by: Aneesh Kumar K.V Reviewed-by: Andrea Arcangeli