Message ID | 20220817081408.513338-5-ying.huang@intel.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6AF39C32774 for <linux-mm@archiver.kernel.org>; Wed, 17 Aug 2022 08:14:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CE3F98D0007; Wed, 17 Aug 2022 04:14:31 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C92788D0001; Wed, 17 Aug 2022 04:14:31 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B332F8D0007; Wed, 17 Aug 2022 04:14:31 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id A13988D0001 for <linux-mm@kvack.org>; Wed, 17 Aug 2022 04:14:31 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 4B01A1405D2 for <linux-mm@kvack.org>; Wed, 17 Aug 2022 08:14:31 +0000 (UTC) X-FDA: 79808372742.01.C33E746 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by imf01.hostedemail.com (Postfix) with ESMTP id 9121240061 for <linux-mm@kvack.org>; Wed, 17 Aug 2022 08:14:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660724070; x=1692260070; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=yhmojqv78CNeejAgfGN/fV62nXwRC1Wfl6ID7EB6l2s=; b=DkUHTahSJjstfVA2rihTgjMiBK1j/gUFjf8OSmxC/dGqsdOU1ivvSE3F W4lDJzg9Kw4Wyl5vWPYrMnGsq3+Cm64auvq7cw7A35e5SMqY3+/B2a6N+ EmcOlfQcxpcFbdMjmXyoNfZQ5bAbt22Y/ckHh300NW6CLVFb2nuw56+Ip oZsFV+IQyFyhOdaNL8DMiy1aGZZX0EeOJuk6qok0wRVdrrxHJ4OJhZssy f7mmvmhDS0axxXl/E55/vMLfKCHfmck4mlqQTV78/cWMFQrfpCpAiFBFo 0p4IK568/kB3hiT4ZCqFyH8PhP0qSKMtKwGedJeUZVSLPOYUXFTahpH7F A==; X-IronPort-AV: E=McAfee;i="6400,9594,10441"; a="293710798" X-IronPort-AV: E=Sophos;i="5.93,242,1654585200"; d="scan'208";a="293710798" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Aug 2022 01:14:30 -0700 X-IronPort-AV: E=Sophos;i="5.93,242,1654585200"; d="scan'208";a="583668113" Received: from yhuang6-mobl1.sh.intel.com ([10.238.6.172]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Aug 2022 01:14:28 -0700 From: Huang Ying <ying.huang@intel.com> To: Andrew Morton <akpm@linux-foundation.org> Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Huang Ying <ying.huang@intel.com>, Baolin Wang <baolin.wang@linux.alibaba.com>, Oscar Salvador <osalvador@suse.de>, Zi Yan <ziy@nvidia.com>, Yang Shi <shy828301@gmail.com> Subject: [PATCH -V3 4/8] migrate_pages(): fix failure counting for THP subpages retrying Date: Wed, 17 Aug 2022 16:14:04 +0800 Message-Id: <20220817081408.513338-5-ying.huang@intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220817081408.513338-1-ying.huang@intel.com> References: <20220817081408.513338-1-ying.huang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1660724071; a=rsa-sha256; cv=none; b=6OLgXwcNBYx5ZRXmQiODzwrzdqf49BvHw16F/pxB09oB4rbALAqBCbjde7312oMjIrGCwA QMBs3y/PMecYxsOQd0Vy657oU6dZQO1HAIp4LN69Y/EZFUqJjPftcUuMYu/XQa0KgP3Skr aWWMCx78fsE4YTNYBpujPXn757+XLN0= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=DkUHTahS; spf=pass (imf01.hostedemail.com: domain of ying.huang@intel.com designates 134.134.136.65 as permitted sender) smtp.mailfrom=ying.huang@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1660724070; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=af0MvMD5wRuTieQ2n5wEH/zhtSaeiOWYrnvmG1YndxA=; b=vpCv1Zz+v8GOGFyCZSkK4Pmk2qxuyRP4frVj3j+5t3si9gbqROswqhLCxhhhQYCfhBlfED lzcHaNC0dSJETZltkHNYMm46GMZynIC6JokoWoe+LQZJ4oA47uj0TSnpzJhZ1yckXhIGd7 c1kLmJHU7F21XlmEC3vF6Nz5D8Sbyhc= Authentication-Results: imf01.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=DkUHTahS; spf=pass (imf01.hostedemail.com: domain of ying.huang@intel.com designates 134.134.136.65 as permitted sender) smtp.mailfrom=ying.huang@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspam-User: X-Stat-Signature: m9ehyqq4uh5bfo9afjzqzgcy4sdeedkr X-Rspamd-Queue-Id: 9121240061 X-Rspamd-Server: rspam06 X-HE-Tag: 1660724070-189916 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
[-V3,1/8] migrate: fix syscall move_pages() return value for failure
|
expand
|
diff --git a/mm/migrate.c b/mm/migrate.c index ae55f08e72ce..0018b5191799 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -1545,7 +1545,8 @@ int migrate_pages(struct list_head *from, new_page_t get_new_page, } } } - nr_failed += retry; + if (!no_subpage_counting) + nr_failed += retry; nr_thp_failed += thp_retry; /* * Try to migrate subpages of fail-to-migrate THPs, no nr_failed