Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp190499ybl; Thu, 5 Dec 2019 17:49:06 -0800 (PST) X-Google-Smtp-Source: APXvYqwuIhvUCJZM/njsaJ7izyr36mobpGlj/y7LYtH8sxo2DZtN5Uh5n/FiVZAkTuH+Oii3pZ31 X-Received: by 2002:aca:3b89:: with SMTP id i131mr4389450oia.43.1575596946339; Thu, 05 Dec 2019 17:49:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575596946; cv=none; d=google.com; s=arc-20160816; b=x/wVzBmFz/V9ZryT40Mvlw5Oyc8hBrkXrAT4UOQw2sGagr1QfKPamYQCDQXjZEreDh VueE+PcA3iH7XCM9Yq5vpLPyPiDohrJkSMkWvj+iiAIs434bYiblm1S+IB04PnYyrZRU rRiRTnKveCGgCTR486k9QIVIgV/VlBzarguLztHEbxbfPReKB2jGwz3AnSVpSWg2Aw4k rLfetgiPTggjJfiscvMywdr1iHiQL6C3c7yfnkIjOlGZ0L6ui3/XVTJ3Go5Vi4RyA7QH K3aIlojQpRWIbpJShdznA4Eo0cK2MFejpOeDjbJZ7nISxvNc0FASFP8Tbd6U8hZjpB9p Re3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=hHAqZuqTQkT4Jg75DDaPISOvw/O4fuowgbjbEnHGf64=; b=1BpoSbouoeTHi7WbC59m7ewJaXXMZtHf9gICf95atEawT11EufRJbb8cLZwAPdDwnN 5pwzmggm08rfWhXkv2Ssi8F7y9DOeo3YrzYRYG2F9EpkhyqTM5BuKLYZQW1dYLcBIrxt tvkOUBh+auXbQWvb6ksYN501VvTeLjb+SJ5WzgaWjb9VgQUc4XnmRSaljahTHyK1zeo2 Qa7nakRDZ/1oYRvDqJGLj41dgUo+MeIQLf8XHQ7rgai4BUWNFUUJAmiOvvFQG3MTwftX 9EsmRfjteSdd0nwDfzrEOhH44/TeXpDdCDVVqQIb/lsS93SZ2D7puY4pIP2tRtAmmOk9 +bbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b="f6tCm1D/"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o125si6117126oig.20.2019.12.05.17.48.53; Thu, 05 Dec 2019 17:49:06 -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; dkim=pass header.i=@nvidia.com header.s=n1 header.b="f6tCm1D/"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726124AbfLFBri (ORCPT + 99 others); Thu, 5 Dec 2019 20:47:38 -0500 Received: from hqemgate16.nvidia.com ([216.228.121.65]:1493 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725988AbfLFBrh (ORCPT ); Thu, 5 Dec 2019 20:47:37 -0500 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate16.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Thu, 05 Dec 2019 17:47:41 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Thu, 05 Dec 2019 17:47:37 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Thu, 05 Dec 2019 17:47:37 -0800 Received: from DRHQMAIL107.nvidia.com (10.27.9.16) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 6 Dec 2019 01:47:36 +0000 Received: from [10.110.48.28] (10.124.1.5) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 6 Dec 2019 01:47:36 +0000 Subject: Re: [PATCH] move_pages.2: not return ENOENT if the page are already on the target nodes To: Yang Shi , , , , , CC: , , , References: <1575596090-115377-1-git-send-email-yang.shi@linux.alibaba.com> X-Nvconfidentiality: public From: John Hubbard Message-ID: <683f6cae-0e0c-d4e4-0929-7fd1a79a2266@nvidia.com> Date: Thu, 5 Dec 2019 17:47:35 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <1575596090-115377-1-git-send-email-yang.shi@linux.alibaba.com> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To DRHQMAIL107.nvidia.com (10.27.9.16) Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1575596861; bh=hHAqZuqTQkT4Jg75DDaPISOvw/O4fuowgbjbEnHGf64=; h=X-PGP-Universal:Subject:To:CC:References:X-Nvconfidentiality:From: Message-ID:Date:User-Agent:MIME-Version:In-Reply-To: X-Originating-IP:X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=f6tCm1D/suIescD8w+pxCD2rleaR43m1WcZ5BxpODtT57dOMzvFdKTb0ou58JXsBL myUNvQvY77xa9Ds51TSoJjp78o/Ss96pAv4jnfqTGAmWpgdHE1pno3y9pCu365EnXl UHwvY9vmfGltMN1M2EiH3Gn7ZksERB31c1jFtN/DkOOWVrD2zlBg2XBvoSLYH8YsYB iy5jpU3sIw0Wr/mWb4yiyok+YlL/R2wvhRONVgj58Sp/gEFFD8vgj2pGtckc8prZxd J2C0PMS1e6I1UT2M30e+Ytfc/FchC1kDISdWP67a0toIT7CyFw+uE1Y2939yHLoqit xRO8aymsX2TCw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/5/19 5:34 PM, Yang Shi wrote: ... > > 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. How about this wording (ignoring man formatting for the moment): No pages were moved, because all requested pages fell into one or more of the following cases: * Page not present. * Page has an invalid address. * Page is mapped by multiple processes. Reasoning: I don't like the "no pages were found" all by itself, because it blindly rewords the meaning of ENOENT. ENOENT is merely the closest symbol we have. So we use ENOENT and that's fine, but the descriptive text should describe what really happened, which is "no pages were moved". If we had an ENOPAGESMOVED then we'd use that. :) thanks, -- John Hubbard NVIDIA