Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp992221ybl; Fri, 6 Dec 2019 09:27:42 -0800 (PST) X-Google-Smtp-Source: APXvYqzVK1Br1XxlA0TmUlsGM+KEZE2S1DhQ+1OWtn6WE7CTmiGcTz7zx9nyCtLLp865BXAqJaaj X-Received: by 2002:aca:ecd3:: with SMTP id k202mr13376586oih.71.1575653262531; Fri, 06 Dec 2019 09:27:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575653262; cv=none; d=google.com; s=arc-20160816; b=XyE/rD0/Fz8qm2vsJyWz4W/aSNul3HLMzbCaU/nE1WacBfwkQ+KIFN7jyFQoE8mULo yrMjPyaVqaJXXnV+BgkfPO5cR695FBqya475QWpS18lricMKDwh0D+tM+wxPAdve/nue FJIM5eyqcHp/kUO3pqR0+6HtwRd+6s7r0/zTa29WgE2L8k7WQR97IeWo8rXJXmZXWqOM Ly04Kt7N8dezV9fXX+/z1d/ORirPr3p9pNtkUYQhiFcQ13zVhljOmcG8ks6QPLJ7NvKB //CfnveQobIJ6ehrRfWCEPoSmx7GTdMKeZgFsTsCEVgOXY+TGrFa0KAOi8aAA6pgrHvb H1Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=zQMNlhbovEQRpQ6xLA9An2Hq91zfTxfyHkjFtmeW3C0=; b=a10ATdfOLJCHMfPU4U7GdZV0v1UMpE3Cwhj3WRu6CCAS9D+c6NuM88hR2vc9o7hENC 9CEzbnhbnHvt7fsNGn7elKocFjlA7RsLefVWic46TDk03ytqdYx1sfZ6ZnFDXmIm/ZWW mLH5S7XJGVwhCciRzFfUHVsSBQ8EHYhArj2+F6yFcebvSZILB0YCw/Jm7kx07VAD376E uDDNi52sI8Wp/Mabza9H68jAkr5njO1j9ZUFQfnBfHsCculARF4N/iIFp9dc9XRCGqZ4 Sc8o4sISe04LMHM2qFG3ILhZ0QBBilhlH2rLEObaH1GzdN9S9CVuaR/YfNh4RPN0Qo2y +1pg== 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=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d6si7350956otq.41.2019.12.06.09.27.29; Fri, 06 Dec 2019 09:27:42 -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=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726365AbfLFR05 (ORCPT + 99 others); Fri, 6 Dec 2019 12:26:57 -0500 Received: from out30-132.freemail.mail.aliyun.com ([115.124.30.132]:45553 "EHLO out30-132.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726287AbfLFR05 (ORCPT ); Fri, 6 Dec 2019 12:26:57 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01422;MF=yang.shi@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0Tk8dtRm_1575653168; Received: from US-143344MP.local(mailfrom:yang.shi@linux.alibaba.com fp:SMTPD_---0Tk8dtRm_1575653168) by smtp.aliyun-inc.com(127.0.0.1); Sat, 07 Dec 2019 01:26:17 +0800 Subject: Re: [PATCH] move_pages.2: not return ENOENT if the page are already on the target nodes To: John Hubbard , mtk.manpages@gmail.com, cl@linux.com, mhocko@suse.com, cai@lca.pw, akpm@linux-foundation.org Cc: linux-man@vger.kernel.org, linux-api@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <1575596090-115377-1-git-send-email-yang.shi@linux.alibaba.com> <0dc96e40-5f2b-a2fe-6e5f-b6f3d5e9ebde@nvidia.com> From: Yang Shi Message-ID: <95170ea5-5b62-9168-fcd9-93b43330a1b4@linux.alibaba.com> Date: Fri, 6 Dec 2019 09:26:05 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <0dc96e40-5f2b-a2fe-6e5f-b6f3d5e9ebde@nvidia.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/6/19 12:25 AM, John Hubbard wrote: > On 12/5/19 5:34 PM, Yang Shi wrote: >> Since commit e78bbfa82624 ("mm: stop returning -ENOENT >> from sys_move_pages() if nothing got migrated"), move_pages doesn't >> return -ENOENT anymore if the pages are already on the target nodes, but >> this change is never reflected in manpage. >> >> Cc: Michael Kerrisk >> Cc: Christoph Lameter >> Cc: John Hubbard >> Cc: Michal Hocko >> Cc: Qian Cai >> Signed-off-by: Yang Shi >> --- >>   man2/move_pages.2 | 5 ++--- >>   1 file changed, 2 insertions(+), 3 deletions(-) >> >> diff --git a/man2/move_pages.2 b/man2/move_pages.2 >> index 2d96468..2a2f3cd 100644 >> --- a/man2/move_pages.2 >> +++ b/man2/move_pages.2 >> @@ -192,9 +192,8 @@ was specified or an attempt was made to migrate >> pages of a kernel thread. >>   One of the target nodes is not online. >>   .TP >>   .B ENOENT >> -No pages were found that require moving. >> -All pages are either already >> -on the target node, not present, had an invalid address or could not be >> +No pages were found. >> +All pages are either not present, had an invalid address or could >> not be >>   moved because they were mapped by multiple processes. >>   .TP >>   .B EPERM >> > > whoa, hold on. If I'm reading through the various error paths > correctly, then this > code is *never* going to return ENOENT for the whole function. It can > fill in that > value per-page, in the status array, but that's all. Did I get that > right? Nice catch. Yes, you are right. > > If so, we need to redo this part of the man page. Yes. > > > thanks,