Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1025534ybl; Fri, 6 Dec 2019 10:01:42 -0800 (PST) X-Google-Smtp-Source: APXvYqx/miJJlSibQo0qacwoN19H9JWu2+Bbxsyzvvi0o/xoixT3U01FFUY6Vb13ee1i2E5tjhh8 X-Received: by 2002:a05:6808:7d9:: with SMTP id f25mr12942542oij.139.1575655302207; Fri, 06 Dec 2019 10:01:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575655302; cv=none; d=google.com; s=arc-20160816; b=nbEfJ8I+0bQCn9pZ02X90hNs9QVCqhR61/IRccnUmkyIBvi5kXa8X8ktrs84qna5vj GIJWrgT+qQM9rHexb9fvVlQS7k3aXiWIGT0rh/lYQusyh2amGYuDcU4pwNNW+Eh6MyXc u0fs5Ns4BF7ys4KATDXAEMVPQc3gxRE+h/IB8xbl/BAVeXPoc/4Y9dXblXEXsAF9zgjd vLxBgsSEfA8d2eQQl+RxMEvffkTyJ7X7r8PrxihxNIc/zcNMDcNfMSOjCA2wOQ8BLF4E /ByUy9fd1L8B1gc0a6NsHhco+dV71PyeZ7CGmbpRKfAIeO//h/rRHgk5o3UIsysS8zTG QNYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=P3LTWZSy3wKY6Vq6kTnLV1Tg9rnX8ii3T/WLf2zHvfQ=; b=lv88PBWkXX4i/N+PJFEk/48jZFavdi5+ldniE8jFljdFtpMWAkHeg+/EvtNDB3z8mR DN5uyT0elXBIoB933lkCl+p1DrvQHq72RLuacNg0yI2ECCoOVFW8lcDNzrs72tTR5JRc RSo5QSXQWB96Lc0TVd/aAHwOtqzphZifLWEp4fReMApM1mZlxaWhR9bapUsnMpEPzmLu Cnv8ItMmm6vhpJScqDdh4hpMvQj+gBP2UmYfy3Bc/a/Yu4YPdAZqohU0N4LwrbHlqnV3 zkHLbLGsKSxBLtaQARMUaQjCExs8r9usBgyniqEufj2U7Nrg6qboM4B9gqvQtBGHWt4x PEYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=kI0cWx5N; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n5si6605680otr.35.2019.12.06.10.01.29; Fri, 06 Dec 2019 10:01: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; dkim=pass header.i=@lca.pw header.s=google header.b=kI0cWx5N; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726365AbfLFSAW (ORCPT + 99 others); Fri, 6 Dec 2019 13:00:22 -0500 Received: from mail-qk1-f193.google.com ([209.85.222.193]:36250 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726287AbfLFSAV (ORCPT ); Fri, 6 Dec 2019 13:00:21 -0500 Received: by mail-qk1-f193.google.com with SMTP id s25so2259425qks.3 for ; Fri, 06 Dec 2019 10:00:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=P3LTWZSy3wKY6Vq6kTnLV1Tg9rnX8ii3T/WLf2zHvfQ=; b=kI0cWx5NuSFo5k3faOPPdQI0tSENAiIOy+0iW1MIzFCOFEvQw8Elx6iYtXcEDSfNyL Gtu+YAXP5mow0XNbpLBkfILQkn0RTJ9EoHgohP/SlgxhcMGmYKq1ctN5S4fYYAVUaWyg z4cV0LVDRK2PmjmUFKJPP3NlnU3E2pAYOOhq6q+dBXtuFU7AqfhtujGxf02k0dPjxi/y hL+AhKRrNnvH2DNIYYcAfDEZJrfXtIDfZsK7NBHxKYCNVK/2Ie/m9PEnKGclC/QstxZd us/75WT+kEtMKAYY8kA8s7aJWQNBgKhcNVbihGh9ctxBM9XgYEickxDgjV4ChkE8qZMI 86jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=P3LTWZSy3wKY6Vq6kTnLV1Tg9rnX8ii3T/WLf2zHvfQ=; b=XAlQDh6mt579iQ0hchLh60Zl8lcwRLK2+AKp8fef3f+v10OkbmFbFE4Ye5A6VcW6Os rl19G5qNn5036BW506F0e4ZiMNA7w/ty79adWg38oXVBon3ziXSfGn0whk12Naguphle 4UQXsICwY+ngimRJn/KwIueS/B6lPw+Hf1IprOw+Ld3X1fD442P3k8eQwVsZtoLJRPB2 q5MoW1QyhBdPOEfbtkyRdjZn0Yt4XFUvvwzKWt0j70TaxZv/P9H8fN1dIBlRftt39kFx 5g/yfq1s0oE5V9ApBDxp0w/iSxrhtYqPyhAMgMcCZdqEn0v/Z4IbYXSmAHOk2BCG41pG BRtw== X-Gm-Message-State: APjAAAXqbuAfUdB+R1O/nRhSNmDj6bZgkUUR7RDuFR1HERK5xkWjy2QD NrtUl8NRwL+JSa0rgBjbfzd8pw== X-Received: by 2002:a05:620a:101b:: with SMTP id z27mr14239078qkj.241.1575655220899; Fri, 06 Dec 2019 10:00:20 -0800 (PST) Received: from [192.168.1.183] (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id p3sm6001073qkf.107.2019.12.06.10.00.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 06 Dec 2019 10:00:20 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Qian Cai Mime-Version: 1.0 (1.0) Subject: Re: [PATCH] move_pages.2: not return ENOENT if the page are already on the target nodes Date: Fri, 6 Dec 2019 13:00:18 -0500 Message-Id: References: <5384814f-c937-9622-adbe-c03e199e0267@linux.alibaba.com> Cc: Michal Hocko , John Hubbard , mtk.manpages@gmail.com, cl@linux.com, akpm@linux-foundation.org, linux-man@vger.kernel.org, linux-api@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org In-Reply-To: <5384814f-c937-9622-adbe-c03e199e0267@linux.alibaba.com> To: Yang Shi X-Mailer: iPhone Mail (17B111) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Dec 6, 2019, at 12:31 PM, Yang Shi wrote: >=20 > It looks since commit e78bbfa82624 ("mm: stop returning -ENOENT from sys_m= ove_pages() if nothing got migrated") too, which reset err to 0 unconditiona= lly. It seems it is on purpose by that commit the syscall caller should chec= k status for the details according to the commit log. I don=E2=80=99t read it on purpose. =E2=80=9CThere is no point in returning -= ENOENT from sys_move_pages() if all pages were already on the right node=E2=80=9D, so this is only taking about the pa= ges in the desired node. Anyway, but now it is probably the best time to thi= nk outside the box redesigning this syscalls and nuke this whole mess.=