Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp471330ybl; Fri, 6 Dec 2019 00:38:01 -0800 (PST) X-Google-Smtp-Source: APXvYqwIgmoxkhHwV1CkB/kOpPAv7XWKRc3HQ98GzjlJHMXHNA5O7d6oZQ5iXBUGFYX2755ATZX0 X-Received: by 2002:a05:6830:22ee:: with SMTP id t14mr9700521otc.236.1575621481226; Fri, 06 Dec 2019 00:38:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575621481; cv=none; d=google.com; s=arc-20160816; b=HPFEvh89lZklz187ufxF62sdEeaDld4YRJDdhfCKq9Id9EDxUekHKrhAzOmm5KK9iF rvJRDfyiDS1fWUJjokeyA+Qyf4Af5oW6zEGB8cV9Yl7eDWLwfG7okz26kL8nUH8lI7e9 AriAClHSBfG2PmQgs1oqYc3VlVLCC3yWaUVX/O6hxfYn6Bt2ibLmlbJRNgBKs7g1iscn AhUvlVybDjR9LAfIn3NvnGL79VkyB3HzjI2hWD8jwAlRWiLGwhW/h16TdTfXKyRO/gum txp29CdA5qs1eq/MhVUQeSbLu/b9y3c8BOOe2i12G1q723N/j8rmqPvXz2sK4NM0pNUO GMVA== 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=1U4N9I7Sc9y0IjpHHe/ILL0my6L0bvlv/3soA/LZXBQ=; b=uySqOkVqkpq7QFkmiP5JCJWBgZTy/jdP9pYoFgdykQLcaOj0mUmdU4mdAydQFkZJgU 5oOR5+kkQpY4Wr4Yjp3Ug+UluEWuvhLpFI4pldcdnobQEKdYzTcduX4vVcs5FIx8EUzZ jzuM3ODusvgkewJoHRxPKoFkIgoXmfHhku/9xWwnyyMW6+jg86fg2igE53qrWMGkaKoR eJanOkWD0pHR2c6f8Lh881EdBJBhLOyvzhcVQe+NEIlzaPZ/dQ8kuOthUKR6JHHB9XD8 FF+1bYKmsakamkfyO84Kc0iBTdECHpTPw9mqBjrPkIrQGlINQnhWrXv6bXCy4ngLFrSx YexQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=ru2aIusP; 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 p19si5314733oic.216.2019.12.06.00.37.48; Fri, 06 Dec 2019 00:38:01 -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=ru2aIusP; 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 S1726475AbfLFI2o (ORCPT + 99 others); Fri, 6 Dec 2019 03:28:44 -0500 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:11643 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726088AbfLFI2n (ORCPT ); Fri, 6 Dec 2019 03:28:43 -0500 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Fri, 06 Dec 2019 00:28:25 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Fri, 06 Dec 2019 00:28:42 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Fri, 06 Dec 2019 00:28:42 -0800 Received: from DRHQMAIL107.nvidia.com (10.27.9.16) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 6 Dec 2019 08:28:42 +0000 Received: from [10.2.163.87] (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 08:28:41 +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: <0dc96e40-5f2b-a2fe-6e5f-b6f3d5e9ebde@nvidia.com> Date: Fri, 6 Dec 2019 00:25:53 -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"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1575620906; bh=1U4N9I7Sc9y0IjpHHe/ILL0my6L0bvlv/3soA/LZXBQ=; 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=ru2aIusPL9M9jcFeBHIHwJL3XtTEuuYrZjBbbQ3J7Cbg8Ami0xgtltwuvHSHLAYnj ufrGfv8+HhxpcBAqWuj+1diQqpDKAt6+G0arLN5UFadEBm5m3sv0FD1X3slEkcOrZC exXvz6mIgaxUz6oK/oBsVvNU4BmwWeuo6IA1/1qyCTtgtSj48AAE/T9A2raC+/quM/ Hs7+SMLGPgIjxjs6IlK58OmrEkie+Jb/C5Z5YBpdQe7YWrwmqkOdmpPaIXCUbrYcIK NKygTVKq1TqzibJgX8z16/XaOlsI8p1DHz4dWRBxr7Q3OxT2rqJoALrdAwOY0LfxFQ H2vFanrsahMdQ== 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: > 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? If so, we need to redo this part of the man page. thanks, -- John Hubbard NVIDIA