Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3890562imw; Mon, 11 Jul 2022 18:56:39 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uMme4vYblXcyP2hBBgXRc9nvyjkR5M3hJZp7n3Bsll+/o8/jZ4+ub2eOgyAmDQJ/kYvfMR X-Received: by 2002:a17:907:2d23:b0:72b:7c6a:24c with SMTP id gs35-20020a1709072d2300b0072b7c6a024cmr1817653ejc.44.1657590999599; Mon, 11 Jul 2022 18:56:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657590999; cv=none; d=google.com; s=arc-20160816; b=Qv/UBG3cB4NtbmYSmUmNJlmkMI/ZxqxF9jVLzLqFXUpSYkBGoMlwAs424Cz76Xw6rM BXU6rb0mJDmlZPDDUFxT/x9iM1JCRORX2lyoqHAC3i8TGlsVpwpVEedEVA3sj7FdniBv 7z7NRB8CY8Lcr+njT+rQ8R3rrE8K+ssZDA7vnl/p6XpImjGkeyLPljT1enMTvlLauW2V RXW3Y5cWr+Yb0l0IA7O6h2REb2yJYVhCp4JI90V1ft1eYdUDcdUkbn8FzciIe3+973ju GT5ePMYj0Ecy68OHsofzu9FL7niKzwK6yBb5fElfxd4i0tHwLo32rIlXz3/AaKWIHZTV XuOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from:dkim-signature; bh=nNy9G1KQ7dbi+crtefrZgsKT5XCwhnNRA6QvWXAOvt4=; b=yy5B6d8vlHv8+16kAdZuo0zCGnQqJj7X5rUQrLEcIvp4mRh4NoidpGRA0vSTpc+/6T p5SfbSprFjHqMOxbtxQcfp04aMDt+4TUSJ83OU0bPiTKNu5ug7YyLkeqvesk4dMuiO3U vmIiKo5WdQecOplxVm1lNzDqE3NaFF/ineAQLIoocjeAlamDwIU4zVwE9qCtupfpcx57 39uqVhT7wnlH46wJoKn5fwsyy8kgqPQz/wPWbuymKRYkDAnLCKJCUWY502w1yuUQ69hU 4ADQ4NitGOp2YByVMJ5yQAuSkUIDXdP3R0yxxtoa+WiOUaF7qp1iJaDNAJ/JIgA8r05M G7Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nz8O7aiB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l3-20020a170906794300b00711da52c6e4si13467147ejo.309.2022.07.11.18.56.09; Mon, 11 Jul 2022 18:56:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nz8O7aiB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231751AbiGLA7U (ORCPT + 99 others); Mon, 11 Jul 2022 20:59:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229616AbiGLA7T (ORCPT ); Mon, 11 Jul 2022 20:59:19 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6368286C9 for ; Mon, 11 Jul 2022 17:59:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657587558; x=1689123558; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=fG91vXyd24Ic0YiHkKexFzSUOf3x6QD+anlpijtsSlc=; b=nz8O7aiB7ieS/dUycNx74A+pVkQGNPo+ZOuvJRshEjjQ9l5NP1Fs3KjN jhX8VMogs0pjNedzijOCUWk5mmp705OmCcmOsrwvPCkTHIfS0fqEQq1AU mwr9apgLiunyxmLPZo0zxlSfLTDf54K2+IqhWqewNb/ezvzuCxBm6TXwe evT3Q2fZfkaV+4ewLrdWHefDwaAsSO3gG8HpUt/AxcrczIcKxNHjgDXUN cqaI4DjADOjtm5kZoXtztWP+BJWrBYUhDUoFeTnyrHnbm6FfdAhgYfxBu 4YbAJYD5OwcUD0UjXBjORLlHqooRf7hW7UaknT+Y9pw548gtItUvCUhnI Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10405"; a="346491017" X-IronPort-AV: E=Sophos;i="5.92,264,1650956400"; d="scan'208";a="346491017" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jul 2022 17:59:18 -0700 X-IronPort-AV: E=Sophos;i="5.92,264,1650956400"; d="scan'208";a="569991996" Received: from yhuang6-desk2.sh.intel.com (HELO yhuang6-desk2.ccr.corp.intel.com) ([10.239.13.94]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jul 2022 17:59:16 -0700 From: "Huang, Ying" To: Oscar Salvador Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Baolin Wang , Zi Yan , Yang Shi Subject: Re: [PATCH -V2 1/7] migrate: fix syscall move_pages() return value for failure In-Reply-To: (Oscar Salvador's message of "Mon, 11 Jul 2022 13:52:34 +0200") References: <20220711084948.274787-1-ying.huang@intel.com> <20220711084948.274787-2-ying.huang@intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Date: Tue, 12 Jul 2022 08:59:12 +0800 Message-ID: <87zghf5eov.fsf@yhuang6-desk2.ccr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ascii X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Oscar Salvador writes: > On Mon, Jul 11, 2022 at 04:49:42PM +0800, Huang Ying wrote: >> return store_status(status, start, node, i - start); >> @@ -1768,8 +1768,12 @@ static int do_pages_move(struct mm_struct *mm, nodemask_t task_nodes, >> >> err = move_pages_and_store_status(mm, current_node, &pagelist, >> status, start, i, nr_pages); >> - if (err) >> + if (err) { >> + /* We have stored status of page i */ > > IMHO, "We have accounted for page i" gives a more clear statement. Sure. Will change this. > Reviewed-by: Oscar Salvador Thanks! Best Regards, Huang, Ying >> + if (err > 0) >> + err--; >> goto out; >> + } >> current_node = NUMA_NO_NODE; >> } >> out_flush: >> -- >> 2.30.2 >> >>