Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp319819ybt; Wed, 8 Jul 2020 00:23:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8nXsUCtsT1gNBlAjVENY9c+lyIClGrH67sTXSWzf7Y9cxNQlj4yKAa2Xchg5jAuuQp3JT X-Received: by 2002:a17:906:5283:: with SMTP id c3mr47848963ejm.22.1594192985045; Wed, 08 Jul 2020 00:23:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594192985; cv=none; d=google.com; s=arc-20160816; b=sHJ1rj50htUhwrChP9wjX+9XDR4vDYx1M0yqcMeVBX274mIm3fAmXogGKrWpZMZsKU v7mKM33O8aByIi/U5MZeeaKCo4+GPhTDbMLtSQIWhblCvmD4dUbi+G+EZXRHteXrai5N 6G4kgagBGeAv0u1yQ8iYtbxqMSH5wRhGrno9pQeVbkD6EmG0LM68Mw4CBJcyW9Ouik3F lTod2pBks9l5qXRsiDajw6gKmOy1h0NAfeZF5zNCz+U9btl21QUkdmNcfS6DWj56LD0y LuwznepIaxWnYO0Bvuh9zR4ao9chrgo2Gv0ID1VOtJqXrBebneFIoozE71ZHEaRFUNAo O29w== 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:dkim-signature; bh=ogE4o4WvozDyfT3UOGRAcLiOplwqpD6nSKH21zq1lM8=; b=l7uhR0Bi0IO7fM9TrC97OrZVdaOyPHrvX3iwz5SIbwJKmGsjuLvROrafAl18a2sqox yT9BrC2DKzkUYiQ8L0R2TuY2cVCoHKBHA7jGqf2UUQHulIsqO1rf5trSlUJJSPcPsgLl L0pZ5fN1XM0WOuicmgZTy/minIMmCG52zhk7lVuBmXXVNTyTft/BX9827Jmp0YLMew38 61H0/olLNue/gxXwgZ3aZ3gNVbvaPaBRNk8c+v/uDQLQNCPxKk1zRbjtR+8CfxNELFAa JhdAvVXPA6RNmanSoTumx+Z2oLYS/8H9pq1iqz1unswJbp0+NkIX2+l6wh75QbmU1Fo9 tFlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kAqV25Aj; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s21si16044918edy.104.2020.07.08.00.22.42; Wed, 08 Jul 2020 00:23:05 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=kAqV25Aj; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730415AbgGHHVm (ORCPT + 99 others); Wed, 8 Jul 2020 03:21:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730410AbgGHHVj (ORCPT ); Wed, 8 Jul 2020 03:21:39 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D994DC061755 for ; Wed, 8 Jul 2020 00:21:38 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id k27so5158258pgm.2 for ; Wed, 08 Jul 2020 00:21:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ogE4o4WvozDyfT3UOGRAcLiOplwqpD6nSKH21zq1lM8=; b=kAqV25AjWwvyshU6McP4HVGr65hx8/Op0fGWcZQqPVJylcSASp+dRZP961RdArQbu7 Y3ATp7t5QSVVH1fQDEOcHyYQ9MQHzcDnAcp2Hhzn4tW/CO4gKza0v6cQ/H3JND9zN8Rp K5TvTMSldPNMCIUxlCmRO6xs7jSUXNXcIPgE5sWeWPiQP0cLXrGiiC6GYf/qYuBlZp99 X5+wsArr5oaRRRwtZQ2WAyPt6ppKcgQwoURXbCF+y63+//38amRsA715cHNQXyFJD2Lz +EuK+pwgl7cQwqnzWh9mY2K3JBWYDtcsGo/o1gCE3ccbalCPKuTC+6iqNpopYctuf0Dv mRoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ogE4o4WvozDyfT3UOGRAcLiOplwqpD6nSKH21zq1lM8=; b=gI/3IBqr3wZgwfF/tJV0h45N0QQ4Kv/IU1OYPR+wtqUXojJfXClhqEuSrvdTJAQ9dI m0MPP1q6RSFAnF4WP9ErjuXfoeWpQHxeIMZpkA6sCPdVgj889BABmIFpoVUTWPyCbHw9 rzqObovtvYySpr1+8zRWIubrYum9gsKQLlNm996T3m1uc+W42gu4GU1x+3vbFz/kWFOr aPUzvGAwp+hOINLo7COlPh2KkLdhGE38VLQIjUWJ8utJSo6gN+ebYWQv+W2+IDakMNjN PH8LsSDw19Bf2Re5Ebt8PvfmJLzppwXTXSxV08hDccBjahvY6YH3JvRc4Wu+fGjAnwXF buKw== X-Gm-Message-State: AOAM530NcsLdUD41RvRhUmI/aZ6/JA266feFms7DgndZ5hcM47HSX7Ho jUMmJ/JE3qgWolk+rEHxpfQ= X-Received: by 2002:a65:4149:: with SMTP id x9mr49796092pgp.424.1594192898437; Wed, 08 Jul 2020 00:21:38 -0700 (PDT) Received: from js1304-desktop ([114.206.198.176]) by smtp.gmail.com with ESMTPSA id mu17sm4886807pjb.53.2020.07.08.00.21.35 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Jul 2020 00:21:38 -0700 (PDT) Date: Wed, 8 Jul 2020 16:21:33 +0900 From: Joonsoo Kim To: Michal Hocko Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@lge.com, Vlastimil Babka , Christoph Hellwig , Roman Gushchin , Mike Kravetz , Naoya Horiguchi Subject: Re: [PATCH v4 07/11] mm/gup: use a standard migration target allocation callback Message-ID: <20200708072132.GE16543@js1304-desktop> References: <1594107889-32228-1-git-send-email-iamjoonsoo.kim@lge.com> <1594107889-32228-8-git-send-email-iamjoonsoo.kim@lge.com> <20200707114614.GK5913@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200707114614.GK5913@dhcp22.suse.cz> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 07, 2020 at 01:46:14PM +0200, Michal Hocko wrote: > On Tue 07-07-20 16:44:45, Joonsoo Kim wrote: > [...] > > @@ -1551,9 +1552,12 @@ struct page *alloc_migration_target(struct page *page, unsigned long private) > > > > gfp_mask |= htlb_alloc_mask(h); > > return alloc_huge_page_nodemask(h, nid, mtc->nmask, > > - gfp_mask, false); > > + gfp_mask, mtc->skip_cma); > > } > > > > + if (mtc->skip_cma) > > + flags = memalloc_nocma_save(); > > + > > As already mentioned in previous email this is a completely wrong usage > of the scope API. The scope should be defined by the caller and this > should be all transparent by the allocator layer. Okay. Like as newly sent patch for 04/11, this patch will also be changed. Thanks.