From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D0D0BC433DF for ; Fri, 26 Jun 2020 05:03:53 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 891A420768 for ; Fri, 26 Jun 2020 05:03:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="V00pRRhq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 891A420768 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 36A3A6B0007; Fri, 26 Jun 2020 01:03:53 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2F4156B0008; Fri, 26 Jun 2020 01:03:53 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1E2E06B000A; Fri, 26 Jun 2020 01:03:53 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0159.hostedemail.com [216.40.44.159]) by kanga.kvack.org (Postfix) with ESMTP id 07B4A6B0007 for ; Fri, 26 Jun 2020 01:03:53 -0400 (EDT) Received: from smtpin26.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id C088F2C7C for ; Fri, 26 Jun 2020 05:03:52 +0000 (UTC) X-FDA: 76970170704.26.body92_470255126e52 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin26.hostedemail.com (Postfix) with ESMTP id 9A3871804B667 for ; Fri, 26 Jun 2020 05:03:52 +0000 (UTC) X-HE-Tag: body92_470255126e52 X-Filterd-Recvd-Size: 3817 Received: from mail-qk1-f195.google.com (mail-qk1-f195.google.com [209.85.222.195]) by imf10.hostedemail.com (Postfix) with ESMTP for ; Fri, 26 Jun 2020 05:03:52 +0000 (UTC) Received: by mail-qk1-f195.google.com with SMTP id j80so7781675qke.0 for ; Thu, 25 Jun 2020 22:03:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=MYSs5eT5+H+DDXa7SQpCZxjLH8NEqlh5crSWC+SUyko=; b=V00pRRhq9bxphfWep6t8lFVdEhgiJTOz5XqB5xZn39QTiYXdEcqYThHVw+1zvOsDWz VxIsaol4TiPYmXWlkVEfgXEbu6R2eBWBWLTpmmB3wbmvh152AATduW3CUHuCZxYGxBkv 1XXzRDP8iETsZw6EyhkZpwxloV7m0uxDhacshNF+RBwZqyekrwUuqVCzo9ymvn/JMKUb a/vCLo1lm6DMTRkZ40ps+Sm6KU/7z5vBoOwFTFXBYCGJ27C4FHF6IMHs48tpv54R6JaJ C8GUnKhn22o+gHdMrY7wtJU4QVC6X8sdCsk4ng7/J2DLwPubI8WsAE7Opkp+b86rowKM 1guw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=MYSs5eT5+H+DDXa7SQpCZxjLH8NEqlh5crSWC+SUyko=; b=XMW2N+9P1/UuBwbGBk1Ob2TqGDp0DBCo6tdwsJhYxCUQYn9DkWgoiN7+OApWGC4SOh MqiUYYI9elIuDyjC6+reGUSj09chhk4lAgRmVEpa3UpGqNpayKPhJ34KExlpnytDam9N CaVrrWA7Hy4rRdZJ7BPkGWEkK8sw8ol4rL2N+CtlgGevfoLpp9R3QFZqMuutfOoQ4zjf tl38ePfH9qfaOu49j1/HAKC8vZJpOtMtAOibx3VrTic+MBMilitv4FK/Vx5Q/3y7S+RA rMBi+dT1YVbgsGYIMmiXlEdwzybSzgHnv1EsxKvr2A2Vq5tysU/zZbSt6enKQLfZzhvl tb8Q== X-Gm-Message-State: AOAM532X9ebMWGNug/uF9p+p5yC4NjgA3bUid+vGIw43QlkfRAku3AiM Dlt+GmIzPI9fYIk80sLwXu5aKhJRPVEJ5yrpa9s= X-Google-Smtp-Source: ABdhPJyFBELjp5thhBR8rQ45kHVsWNrd2bCEMcJZVym82CgtEELCpfimj4s/5eKHhCs8TxK2jxXOgkWvhpjejIllFt4= X-Received: by 2002:a37:6003:: with SMTP id u3mr939689qkb.343.1593147831746; Thu, 25 Jun 2020 22:03:51 -0700 (PDT) MIME-Version: 1.0 References: <1592892828-1934-1-git-send-email-iamjoonsoo.kim@lge.com> <1592892828-1934-7-git-send-email-iamjoonsoo.kim@lge.com> <20200625120830.GG1320@dhcp22.suse.cz> In-Reply-To: <20200625120830.GG1320@dhcp22.suse.cz> From: Joonsoo Kim Date: Fri, 26 Jun 2020 14:03:41 +0900 Message-ID: Subject: Re: [PATCH v3 6/8] mm/gup: use a standard migration target allocation callback To: Michal Hocko Cc: Andrew Morton , Linux Memory Management List , LKML , kernel-team@lge.com, Vlastimil Babka , Christoph Hellwig , Roman Gushchin , Mike Kravetz , Naoya Horiguchi , Joonsoo Kim Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 9A3871804B667 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam04 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 2020=EB=85=84 6=EC=9B=94 25=EC=9D=BC (=EB=AA=A9) =EC=98=A4=ED=9B=84 9:08, M= ichal Hocko =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1: > > On Tue 23-06-20 15:13:46, Joonsoo Kim wrote: > > From: Joonsoo Kim > > > > There is a well-defined migration target allocation callback. > > It's mostly similar with new_non_cma_page() except considering CMA page= s. > > > > This patch adds a CMA consideration to the standard migration target > > allocation callback and use it on gup.c. > > We already can express that by a missing __GFP_MOVABLE so I would rather > not introduce a duplication in form of another flag. I replied to this question in a previous email. Thanks.